Date: Sat, 10 Apr 2010 22:11:02 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r206461 - head/sys/netinet/ipfw Message-ID: <201004102211.o3AMB2Gw007321@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Sat Apr 10 22:11:01 2010 New Revision: 206461 URL: http://svn.freebsd.org/changeset/base/206461 Log: 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. Modified: head/sys/netinet/ipfw/ip_dn_io.c Modified: head/sys/netinet/ipfw/ip_dn_io.c ============================================================================== --- head/sys/netinet/ipfw/ip_dn_io.c Sat Apr 10 19:25:55 2010 (r206460) +++ head/sys/netinet/ipfw/ip_dn_io.c Sat Apr 10 22:11:01 2010 (r206461) @@ -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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004102211.o3AMB2Gw007321>