aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_divert.c
diff options
context:
space:
mode:
authorMarko Zec <zec@FreeBSD.org>2008-11-26 22:32:07 +0000
committerMarko Zec <zec@FreeBSD.org>2008-11-26 22:32:07 +0000
commit97021c246444967a8f441a90076fb4f7ef22fb3a (patch)
tree92dfba43d59635c80de0299501512e8472dbe130 /sys/netinet/ip_divert.c
parent1b4822a4130eb584a8399818082234af5131fb34 (diff)
downloadsrc-97021c246444967a8f441a90076fb4f7ef22fb3a.tar.gz
src-97021c246444967a8f441a90076fb4f7ef22fb3a.zip
Merge more of currently non-functional (i.e. resolving to
whitespace) macros from p4/vimage branch. Do a better job at enclosing all instantiations of globals scheduled for virtualization in #ifdef VIMAGE_GLOBALS blocks. De-virtualize and mark as const saorder_state_alive and saorder_state_any arrays from ipsec code, given that they are never updated at runtime, so virtualizing them would be pointless. Reviewed by: bz, julian Approved by: julian (mentor) Obtained from: //depot/projects/vimage-commit2/... X-MFC after: never Sponsored by: NLnet Foundation, The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=185348
Diffstat (limited to 'sys/netinet/ip_divert.c')
-rw-r--r--sys/netinet/ip_divert.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index dd0445d9a7f2..b74f5db4e0b1 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -581,6 +581,7 @@ div_ctlinput(int cmd, struct sockaddr *sa, void *vip)
static int
div_pcblist(SYSCTL_HANDLER_ARGS)
{
+ INIT_VNET_INET(curvnet);
int error, i, n;
struct inpcb *inp, **inp_list;
inp_gen_t gencnt;