Properly hide IPv4 only variables and functions under #ifdef INET.

This commit is contained in:
Bjoern A. Zeeb 2009-06-10 19:25:46 +00:00
parent 9af31fe2f8
commit fc228fbf49
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193947
3 changed files with 6 additions and 0 deletions

View File

@ -1702,6 +1702,7 @@ vshiftl(unsigned char *bitmap, int nbit, int wsize)
}
}
#ifdef INET
/* Return a printable string for the IPv4 address. */
static char *
inet_ntoa4(struct in_addr ina)
@ -1716,6 +1717,7 @@ inet_ntoa4(struct in_addr ina)
ucp[2] & 0xff, ucp[3] & 0xff);
return (buf[i]);
}
#endif
/* Return a printable string for the address. */
char *

View File

@ -103,7 +103,9 @@
#define IPSEC_ISTAT(p,x,y,z) ((p) == IPPROTO_ESP ? (x)++ : \
(p) == IPPROTO_AH ? (y)++ : (z)++)
#ifdef INET
static void ipsec4_common_ctlinput(int, struct sockaddr *, void *, int);
#endif
/*
* ipsec_common_input gets called when an IPsec-protected packet

View File

@ -171,7 +171,9 @@ _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp)
{
INIT_VNET_NET(curvnet);
INIT_VNET_IPSEC(curvnet);
#ifdef INET
register struct sockaddr_in *sin;
#endif
register struct ifnet *ifp;
register struct ifaddr *ifa;
struct ip *ipo;