svn commit: r256515 - head/sys/netinet6
Gleb Smirnoff
glebius at FreeBSD.org
Tue Oct 15 10:09:34 UTC 2013
Author: glebius
Date: Tue Oct 15 10:09:33 2013
New Revision: 256515
URL: http://svnweb.freebsd.org/changeset/base/256515
Log:
Now counter_u64_t is known to userland, thus remove hack from r253086.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Modified:
head/sys/netinet6/in6_var.h
Modified: head/sys/netinet6/in6_var.h
==============================================================================
--- head/sys/netinet6/in6_var.h Tue Oct 15 10:05:37 2013 (r256514)
+++ head/sys/netinet6/in6_var.h Tue Oct 15 10:09:33 2013 (r256515)
@@ -65,6 +65,7 @@
#define _NETINET6_IN6_VAR_H_
#include <sys/tree.h>
+#include <sys/counter.h>
#ifdef _KERNEL
#include <sys/fnv_hash.h>
@@ -98,9 +99,6 @@ struct scope6_id;
struct lltable;
struct mld_ifinfo;
-#ifdef _KERNEL
-#include <sys/counter.h>
-
struct in6_ifextra {
counter_u64_t *in6_ifstat;
counter_u64_t *icmp6_ifstat;
@@ -109,17 +107,6 @@ struct in6_ifextra {
struct lltable *lltable;
struct mld_ifinfo *mld_ifinfo;
};
-#else
-
-struct in6_ifextra {
- void *in6_ifstat;
- void *icmp6_ifstat;
- struct nd_ifinfo *nd_ifinfo;
- struct scope6_id *scope6_id;
- struct lltable *lltable;
- struct mld_ifinfo *mld_ifinfo;
-};
-#endif /* !_KERNEL */
#define LLTABLE6(ifp) (((struct in6_ifextra *)(ifp)->if_afdata[AF_INET6])->lltable)
More information about the svn-src-all
mailing list