summaryrefslogtreecommitdiffstats
path: root/sys/ofed/include/net/ip.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ofed/include/net/ip.h')
-rw-r--r--sys/ofed/include/net/ip.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/ofed/include/net/ip.h b/sys/ofed/include/net/ip.h
index 8b29d62..d9d64d5 100644
--- a/sys/ofed/include/net/ip.h
+++ b/sys/ofed/include/net/ip.h
@@ -29,6 +29,8 @@
#ifndef _LINUX_NET_IP_H_
#define _LINUX_NET_IP_H_
+#include "opt_inet.h"
+
#include <sys/types.h>
#include <sys/socket.h>
@@ -39,6 +41,7 @@
#include <netinet/in.h>
#include <netinet/in_pcb.h>
+#ifdef INET
static inline void inet_get_local_port_range(int *low, int *high)
{
*low = V_ipport_firstauto;
@@ -73,5 +76,6 @@ 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_ */
OpenPOWER on IntegriCloud