Changeset View
Changeset View
Standalone View
Standalone View
libexec/pppoed/pppoed.c
Show First 20 Lines • Show All 380 Lines • ▼ Show 20 Lines | case 0: | ||||
} | } | ||||
if (ret == 0) { | if (ret == 0) { | ||||
/* The socket has been closed */ | /* The socket has been closed */ | ||||
syslog(LOG_INFO, "%s: Client timed out", path); | syslog(LOG_INFO, "%s: Client timed out", path); | ||||
_exit(EX_TEMPFAIL); | _exit(EX_TEMPFAIL); | ||||
} | } | ||||
if (rep->header.version != NG_VERSION) { | |||||
syslog(LOG_ERR, "%ld: Unexpected netgraph version, expected %ld", | |||||
(long)rep->header.version, (long)NG_VERSION); | |||||
_exit(EX_PROTOCOL); | |||||
} | |||||
if (rep->header.typecookie != NGM_PPPOE_COOKIE) { | if (rep->header.typecookie != NGM_PPPOE_COOKIE) { | ||||
syslog(LOG_INFO, "%ld: Unexpected netgraph cookie, expected %ld", | syslog(LOG_INFO, "%ld: Unexpected netgraph cookie, expected %ld", | ||||
(long)rep->header.typecookie, (long)NGM_PPPOE_COOKIE); | (long)rep->header.typecookie, (long)NGM_PPPOE_COOKIE); | ||||
continue; | continue; | ||||
} | } | ||||
switch (rep->header.cmd) { | switch (rep->header.cmd) { | ||||
case NGM_PPPOE_SET_FLAG: msg = "SET_FLAG"; break; | case NGM_PPPOE_SET_FLAG: msg = "SET_FLAG"; break; | ||||
▲ Show 20 Lines • Show All 292 Lines • Show Last 20 Lines |