diff options
| author | Brian Somers <brian@FreeBSD.org> | 2004-09-06 23:54:54 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2004-09-06 23:54:54 +0000 |
| commit | f2f076a92a1954d852651543e036cd4bad830b57 (patch) | |
| tree | 80b7ffcae6cf650ae8313710a77c257584fbbd21 /usr.sbin/ppp | |
| parent | d698cdb301e87eade5aa23e08b2860341e572eef (diff) | |
Notes
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 7a84e099959ee..5cd2272ff8307 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 79a300025c424..202f1c342e12c 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; |
