Fix compilation of LINT-NOINET kernel target after r278886.

Sponsored by:	Mellanox Technologies
MFC after:	1 month
This commit is contained in:
Hans Petter Selasky 2015-02-17 21:59:15 +00:00
parent 997707f4b6
commit 76a2b0a487
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278924

View file

@ -42,13 +42,17 @@
#include <netinet/in.h>
#include <netinet/in_pcb.h>
#ifdef INET
static inline void inet_get_local_port_range(int *low, int *high)
{
#ifdef INET
CURVNET_SET_QUIET(TD_TO_VNET(curthread));
*low = V_ipport_firstauto;
*high = V_ipport_lastauto;
CURVNET_RESTORE();
#else
*low = IPPORT_EPHEMERALFIRST; /* 10000 */
*high = IPPORT_EPHEMERALLAST; /* 65535 */
#endif
}
static inline void
@ -79,6 +83,5 @@ ip_ib_mc_map(uint32_t addr, const unsigned char *bcast, char *buf)
buf[18] = (addr >> 8) & 0xff;
buf[19] = addr & 0xff;
}
#endif
#endif /* _LINUX_NET_IP_H_ */