diff options
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/ip.c | 7 | ||||
-rw-r--r-- | usr.sbin/ppp/ncp.c | 16 |
2 files changed, 20 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index 7a84e09..5cd2272 100644 --- a/usr.sbin/ppp/ip.c +++ b/usr.sbin/ppp/ip.c @@ -206,7 +206,12 @@ prototxt(int cproto) * One (and only one) of pip or pip6 must be set. */ int -FilterCheck(const unsigned char *packet, u_int32_t family, +FilterCheck(const unsigned char *packet, +#ifdef NOINET6 + u_int32_t family __unused, +#else + u_int32_t family, +#endif const struct filter *filter, unsigned *psecs) { int gotinfo; /* true if IP payload decoded */ diff --git a/usr.sbin/ppp/ncp.c b/usr.sbin/ppp/ncp.c index 79a3000..202f1c3 100644 --- a/usr.sbin/ppp/ncp.c +++ b/usr.sbin/ppp/ncp.c @@ -139,7 +139,13 @@ ncp_Destroy(struct ncp *ncp) } int -ncp_fsmStart(struct ncp *ncp, struct bundle *bundle) +ncp_fsmStart(struct ncp *ncp, +#ifdef NOINET6 + struct bundle *bundle __unused +#else + struct bundle *bundle +#endif + ) { int res = 0; @@ -326,7 +332,13 @@ ncp_FillPhysicalQueues(struct ncp *ncp, struct bundle *bundle) * of what is to be pushed next, coming either from mp->out or ncp->afq. */ int -ncp_PushPacket(struct ncp *ncp __unused, int *af, struct link *l) +ncp_PushPacket(struct ncp *ncp __unused, +#ifdef NOINET6 + int *af __unused, +#else + int *af, +#endif + struct link *l) { struct bundle *bundle = l->lcp.fsm.bundle; int res; |