mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
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.
This commit is contained in:
parent
3b4e5df82c
commit
0f08182a03
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue