diff options
author | shin <shin@FreeBSD.org> | 1999-11-05 14:41:39 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 1999-11-05 14:41:39 +0000 |
commit | 7efc91cadcfeb421fc4d02ba94db784616f3714c (patch) | |
tree | f40f3ca5e5c27dfec6f4c10b00aa3b391491a550 /sys/netinet/udp_var.h | |
parent | 660a7daead2ffcf4f7e3d2a3c874a82ccc8954c8 (diff) | |
download | FreeBSD-src-7efc91cadcfeb421fc4d02ba94db784616f3714c.zip FreeBSD-src-7efc91cadcfeb421fc4d02ba94db784616f3714c.tar.gz |
KAME related header files additions and merges.
(only those which don't affect c source files so much)
Reviewed by: cvs-committers
Obtained from: KAME project
Diffstat (limited to 'sys/netinet/udp_var.h')
-rw-r--r-- | sys/netinet/udp_var.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h index 5ede8a6..0ee8258 100644 --- a/sys/netinet/udp_var.h +++ b/sys/netinet/udp_var.h @@ -69,6 +69,7 @@ struct udpstat { u_long udps_ipackets; /* total input packets */ u_long udps_hdrops; /* packet shorter than header */ u_long udps_badsum; /* checksum error */ + u_long udps_nosum; /* no checksum */ u_long udps_badlen; /* data length larger than packet */ u_long udps_noport; /* no socket on port */ u_long udps_noportbcast; /* of above, arrived as broadcast */ @@ -78,6 +79,8 @@ struct udpstat { /* output statistics: */ u_long udps_opackets; /* total output packets */ u_long udps_fastout; /* output packets on fast path */ + /* of no socket on port, arrived as multicast */ + u_long udps_noportmcast; }; /* @@ -103,11 +106,19 @@ struct udpstat { SYSCTL_DECL(_net_inet_udp); extern struct pr_usrreqs udp_usrreqs; +extern struct inpcbhead udb; extern struct inpcbinfo udbinfo; +extern u_long udp_sendspace; +extern u_long udp_recvspace; +extern struct udpstat udpstat; +extern int log_in_vain; -void udp_ctlinput __P((int, struct sockaddr *, void *)); -void udp_init __P((void)); -void udp_input __P((struct mbuf *, int)); +void udp_ctlinput __P((int, struct sockaddr *, void *)); +void udp_init __P((void)); +void udp_input __P((struct mbuf *, int)); + +void udp_notify __P((struct inpcb *inp, int errno)); +int udp_shutdown __P((struct socket *so)); #endif #endif |