svn commit: r278924 - head/sys/ofed/include/net

Hans Petter Selasky hselasky at FreeBSD.org
Tue Feb 17 21:59:16 UTC 2015


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_ */


More information about the svn-src-all mailing list