diff options
author | brian <brian@FreeBSD.org> | 2004-09-06 23:54:54 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2004-09-06 23:54:54 +0000 |
commit | 6cdf323e29a2cae07966e7c00a1fc216eb64aa19 (patch) | |
tree | 80b7ffcae6cf650ae8313710a77c257584fbbd21 /usr.sbin/ppp | |
parent | 3db8b85883036d7370d06b58dc7044f79e7fa7e9 (diff) | |
download | FreeBSD-src-6cdf323e29a2cae07966e7c00a1fc216eb64aa19.zip FreeBSD-src-6cdf323e29a2cae07966e7c00a1fc216eb64aa19.tar.gz |
Build with -DNOINET6...
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; |