mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
Add optional support for RFC863, Discard Protocol
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
eb57457522
commit
90497af7bb
6 files changed
+109
-20
No files matched your search
+3
-3
@@ -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
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user