summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-10-16 10:58:00 +0000
committered <ed@FreeBSD.org>2011-10-16 10:58:00 +0000
commit260d7934a518bcc3924315dfc2f9cdfa061ddb5a (patch)
tree6b2a9c502a89f7da906dbf0488b9a84029ce7e18 /sys/netinet
parentabe2037bc726a33e03448bc38a9a492f8ebb16ec (diff)
downloadFreeBSD-src-260d7934a518bcc3924315dfc2f9cdfa061ddb5a.zip
FreeBSD-src-260d7934a518bcc3924315dfc2f9cdfa061ddb5a.tar.gz
Forward declare mbuf and inpcb.
This fixes a compiler warning at WARNS=6 when including the header files as follows: #include <sys/types.h> #include <netinet/in.h> #include <netinet/ip_var.h> #include <netinet/udp.h> #include <netinet/udp_var.h>
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/udp_var.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h
index 7e7cfba..6e5abd0 100644
--- a/sys/netinet/udp_var.h
+++ b/sys/netinet/udp_var.h
@@ -51,6 +51,9 @@ struct udpiphdr {
#define ui_ulen ui_u.uh_ulen
#define ui_sum ui_u.uh_sum
+struct inpcb;
+struct mbuf;
+
typedef void(*udp_tun_func_t)(struct mbuf *, int off, struct inpcb *);
/*
OpenPOWER on IntegriCloud