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 time (rdate) protocol RFC 868
/* Optional inetd plugin for Time Protocol (rdate), RFC 868
*
* Copyright (c) 2015 Joachim Nilsson <troglobit@gmail.com>
*
@@ -32,7 +32,7 @@
#define EPOCH_OFFSET 2208988800ULL
/* Return number of seconds since midnight, 1st Jan, 1900 */
static int rfc868(int type)
static int cb(int type)
{
int sd = STDIN_FILENO;
time_t now;
@@ -64,7 +64,7 @@ static int rfc868(int type)
static plugin_t plugin = {
.name = "time", /* Must match the inetd /etc/services entry */
.inetd = {
.cmd = rfc868
.cmd = cb
}
};