Date: Tue, 17 Feb 2015 21:59:16 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278924 - head/sys/ofed/include/net Message-ID: <201502172159.t1HLxGId060804@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Tue Feb 17 21:59:15 2015 New Revision: 278924 URL: https://svnweb.freebsd.org/changeset/base/278924 Log: Fix compilation of LINT-NOINET kernel target after r278886. Sponsored by: Mellanox Technologies MFC after: 1 month Modified: head/sys/ofed/include/net/ip.h Modified: head/sys/ofed/include/net/ip.h ============================================================================== --- head/sys/ofed/include/net/ip.h Tue Feb 17 21:39:22 2015 (r278923) +++ head/sys/ofed/include/net/ip.h Tue Feb 17 21:59:15 2015 (r278924) @@ -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 unsign buf[18] = (addr >> 8) & 0xff; buf[19] = addr & 0xff; } -#endif #endif /* _LINUX_NET_IP_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502172159.t1HLxGId060804>