mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +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 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
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user