Add optional support for RFC863, Discard Protocol

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-07-18 09:55:19 +02:00
1 parent eb57457522
commit 90497af7bb
6 files changed
+109 -20

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
/* Optional inetd plugin for the echo protocol RFC 862
/* Optional inetd plugin for the Echo Protocol, RFC 862
*
* Copyright (c) 2016 Joachim Nilsson <troglobit@gmail.com>
*
@@ -27,7 +27,7 @@
#include "../plugin.h"
static int echo_cb(int type)
static int cb(int type)
{
int sd = STDIN_FILENO;
char buf[BUFSIZ];
@@ -45,7 +45,7 @@ static int echo_cb(int type)
static plugin_t plugin = {
.name = "echo", /* Must match the inetd /etc/services entry */
.inetd = {
.cmd = echo_cb
.cmd = cb
},
};