diff options
author | bz <bz@FreeBSD.org> | 2010-04-10 22:11:01 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2010-04-10 22:11:01 +0000 |
commit | 1f5c413779c10e8487cdf7480cc95a7fc868c7b6 (patch) | |
tree | 87733c076465cf6d9d72eafec02d311cb9c58482 /sys/netinet | |
parent | c1e0bdf67c05cbc608f667819dde5030b8348fa7 (diff) | |
download | FreeBSD-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.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ipfw/ip_dn_io.c | 5 |
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(); |