summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-04-10 22:11:01 +0000
committerbz <bz@FreeBSD.org>2010-04-10 22:11:01 +0000
commit1f5c413779c10e8487cdf7480cc95a7fc868c7b6 (patch)
tree87733c076465cf6d9d72eafec02d311cb9c58482
parentc1e0bdf67c05cbc608f667819dde5030b8348fa7 (diff)
downloadFreeBSD-src-1f5c413779c10e8487cdf7480cc95a7fc868c7b6.zip
FreeBSD-src-1f5c413779c10e8487cdf7480cc95a7fc868c7b6.tar.gz
Try to help with a virtualized dummynet after r206428.
This adds the explicit include (so far probably included through one of the few "hidden" includes in other header files) for vnet.h and adds a cast to unbreak LINT-VIMAGE.
-rw-r--r--sys/netinet/ipfw/ip_dn_io.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ipfw/ip_dn_io.c b/sys/netinet/ipfw/ip_dn_io.c
index 41bab2d..152010e 100644
--- a/sys/netinet/ipfw/ip_dn_io.c
+++ b/sys/netinet/ipfw/ip_dn_io.c
@@ -45,8 +45,11 @@ __FBSDID("$FreeBSD$");
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/sysctl.h>
+
#include <net/if.h> /* IFNAMSIZ, struct ifaddr, ifq head, lock.h mutex.h */
#include <net/netisr.h>
+#include <net/vnet.h>
+
#include <netinet/in.h>
#include <netinet/ip.h> /* ip_len, ip_off */
#include <netinet/ip_var.h> /* ip_output(), IP_FORWARDING */
@@ -500,7 +503,7 @@ dummynet_task(void *context, int pending)
struct timeval t;
struct mq q = { NULL, NULL }; /* queue to accumulate results */
- CURVNET_SET(context);
+ CURVNET_SET((struct vnet *)context);
DN_BH_WLOCK();
OpenPOWER on IntegriCloud