udp_var.h (233554) | udp_var.h (253081) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * @(#)udp_var.h 8.1 (Berkeley) 6/10/93 | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * @(#)udp_var.h 8.1 (Berkeley) 6/10/93 |
31 * $FreeBSD: head/sys/netinet/udp_var.h 233554 2012-03-27 15:14:29Z bz $ | 31 * $FreeBSD: head/sys/netinet/udp_var.h 253081 2013-07-09 09:32:06Z ae $ |
32 */ 33 34#ifndef _NETINET_UDP_VAR_H_ 35#define _NETINET_UDP_VAR_H_ 36 37/* 38 * UDP kernel structures and variables. 39 */ --- 30 unchanged lines hidden (view full) --- 70 /* IPsec: ESP in UDP tunneling: */ 71#define UF_ESPINUDP_NON_IKE 0x00000001 /* w/ non-IKE marker .. */ 72 /* .. per draft-ietf-ipsec-nat-t-ike-0[01], 73 * and draft-ietf-ipsec-udp-encaps-(00/)01.txt */ 74#define UF_ESPINUDP 0x00000002 /* w/ non-ESP marker. */ 75 76struct udpstat { 77 /* input statistics: */ | 32 */ 33 34#ifndef _NETINET_UDP_VAR_H_ 35#define _NETINET_UDP_VAR_H_ 36 37/* 38 * UDP kernel structures and variables. 39 */ --- 30 unchanged lines hidden (view full) --- 70 /* IPsec: ESP in UDP tunneling: */ 71#define UF_ESPINUDP_NON_IKE 0x00000001 /* w/ non-IKE marker .. */ 72 /* .. per draft-ietf-ipsec-nat-t-ike-0[01], 73 * and draft-ietf-ipsec-udp-encaps-(00/)01.txt */ 74#define UF_ESPINUDP 0x00000002 /* w/ non-ESP marker. */ 75 76struct udpstat { 77 /* input statistics: */ |
78 u_long udps_ipackets; /* total input packets */ 79 u_long udps_hdrops; /* packet shorter than header */ 80 u_long udps_badsum; /* checksum error */ 81 u_long udps_nosum; /* no checksum */ 82 u_long udps_badlen; /* data length larger than packet */ 83 u_long udps_noport; /* no socket on port */ 84 u_long udps_noportbcast; /* of above, arrived as broadcast */ 85 u_long udps_fullsock; /* not delivered, input socket full */ 86 u_long udpps_pcbcachemiss; /* input packets missing pcb cache */ 87 u_long udpps_pcbhashmiss; /* input packets not for hashed pcb */ | 78 uint64_t udps_ipackets; /* total input packets */ 79 uint64_t udps_hdrops; /* packet shorter than header */ 80 uint64_t udps_badsum; /* checksum error */ 81 uint64_t udps_nosum; /* no checksum */ 82 uint64_t udps_badlen; /* data length larger than packet */ 83 uint64_t udps_noport; /* no socket on port */ 84 uint64_t udps_noportbcast; /* of above, arrived as broadcast */ 85 uint64_t udps_fullsock; /* not delivered, input socket full */ 86 uint64_t udpps_pcbcachemiss; /* input packets missing pcb cache */ 87 uint64_t udpps_pcbhashmiss; /* input packets not for hashed pcb */ |
88 /* output statistics: */ | 88 /* output statistics: */ |
89 u_long udps_opackets; /* total output packets */ 90 u_long udps_fastout; /* output packets on fast path */ | 89 uint64_t udps_opackets; /* total output packets */ 90 uint64_t udps_fastout; /* output packets on fast path */ |
91 /* of no socket on port, arrived as multicast */ | 91 /* of no socket on port, arrived as multicast */ |
92 u_long udps_noportmcast; 93 u_long udps_filtermcast; /* blocked by multicast filter */ | 92 uint64_t udps_noportmcast; 93 uint64_t udps_filtermcast; /* blocked by multicast filter */ |
94}; 95 96#ifdef _KERNEL 97/* 98 * In-kernel consumers can use these accessor macros directly to update 99 * stats. 100 */ 101#define UDPSTAT_ADD(name, val) V_udpstat.name += (val) --- 65 unchanged lines hidden --- | 94}; 95 96#ifdef _KERNEL 97/* 98 * In-kernel consumers can use these accessor macros directly to update 99 * stats. 100 */ 101#define UDPSTAT_ADD(name, val) V_udpstat.name += (val) --- 65 unchanged lines hidden --- |