svn commit: r214039 - in projects/ofed/head/sys/ofed/include: linux
net
Jeff Roberson
jeff at FreeBSD.org
Mon Oct 18 22:23:21 UTC 2010
Author: jeff
Date: Mon Oct 18 22:23:21 2010
New Revision: 214039
URL: http://svn.freebsd.org/changeset/base/214039
Log:
- Improve ipv6 support by bringing in opt_inet6.h and including the right
headers where appropriate.
Sponsored by: Isilon Systems, iX Systems, and Panasas.
Modified:
projects/ofed/head/sys/ofed/include/linux/in6.h
projects/ofed/head/sys/ofed/include/linux/list.h
projects/ofed/head/sys/ofed/include/linux/netdevice.h
projects/ofed/head/sys/ofed/include/net/ipv6.h
Modified: projects/ofed/head/sys/ofed/include/linux/in6.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/linux/in6.h Mon Oct 18 22:22:38 2010 (r214038)
+++ projects/ofed/head/sys/ofed/include/linux/in6.h Mon Oct 18 22:23:21 2010 (r214039)
@@ -29,4 +29,6 @@
#ifndef _LINUX_IN6_H_
#define _LINUX_IN6_H_
+#include "opt_inet6.h"
+
#endif /* _LINUX_IN6_H_ */
Modified: projects/ofed/head/sys/ofed/include/linux/list.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/linux/list.h Mon Oct 18 22:22:38 2010 (r214038)
+++ projects/ofed/head/sys/ofed/include/linux/list.h Mon Oct 18 22:23:21 2010 (r214039)
@@ -45,11 +45,18 @@
#include <sys/conf.h>
#include <sys/socket.h>
+#include <net/if.h>
#include <net/if_types.h>
#include <netinet/in.h>
#include <netinet/in_pcb.h>
+#include "opt_inet6.h"
+#ifdef INET6
+#include <netinet6/in6_var.h>
+#include <netinet6/nd6.h>
+#endif
+
#include <vm/vm.h>
#include <vm/vm_object.h>
Modified: projects/ofed/head/sys/ofed/include/linux/netdevice.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/linux/netdevice.h Mon Oct 18 22:22:38 2010 (r214038)
+++ projects/ofed/head/sys/ofed/include/linux/netdevice.h Mon Oct 18 22:23:21 2010 (r214039)
@@ -49,7 +49,7 @@ struct net {
extern struct net init_net;
-#define MAX_ADDR_LEN 32
+#define MAX_ADDR_LEN 20
#define net_device ifnet
Modified: projects/ofed/head/sys/ofed/include/net/ipv6.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/net/ipv6.h Mon Oct 18 22:22:38 2010 (r214038)
+++ projects/ofed/head/sys/ofed/include/net/ipv6.h Mon Oct 18 22:23:21 2010 (r214039)
@@ -29,10 +29,13 @@
#ifndef _LINUX_NET_IPV6_H_
#define _LINUX_NET_IPV6_H_
+#include "opt_inet6.h"
+
#define ipv6_addr_loopback IN6_IS_ADDR_LOOPBACK
#define ipv6_addr_copy(dst, src) \
memcpy((dst), (src), sizeof(struct in6_addr))
+#ifdef INET6
static inline void
ipv6_ib_mc_map(const struct in6_addr *addr, const unsigned char *broadcast,
char *buf)
@@ -52,5 +55,6 @@ ipv6_ib_mc_map(const struct in6_addr *ad
buf[9] = broadcast[9];
memcpy(&buf[10], &addr->s6_addr[6], 10);
}
+#endif
#endif /* _LINUX_NET_IPV6_H_ */
More information about the svn-src-projects
mailing list