summaryrefslogtreecommitdiff
path: root/sys/netinet/udp_var.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/udp_var.h')
-rw-r--r--sys/netinet/udp_var.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h
index 211edff8fa3f..417c59716362 100644
--- a/sys/netinet/udp_var.h
+++ b/sys/netinet/udp_var.h
@@ -119,12 +119,16 @@ SYSCTL_DECL(_net_inet_udp);
extern struct pr_usrreqs udp_usrreqs;
-#ifdef VIMAGE_GLOBALS
-extern struct inpcbhead udb;
-extern struct inpcbinfo udbinfo;
-extern struct udpstat udpstat;
-extern int udp_blackhole;
-#endif
+VNET_DECLARE(struct inpcbhead, udb);
+VNET_DECLARE(struct inpcbinfo, udbinfo);
+VNET_DECLARE(struct udpstat, udpstat);
+VNET_DECLARE(int, udp_blackhole);
+
+#define V_udb VNET_GET(udb)
+#define V_udbinfo VNET_GET(udbinfo)
+#define V_udpstat VNET_GET(udpstat)
+#define V_udp_blackhole VNET_GET(udp_blackhole)
+
extern u_long udp_sendspace;
extern u_long udp_recvspace;
extern int udp_log_in_vain;