Deleted Added
full compact
udp_var.h (195727) udp_var.h (196039)
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 195727 2009-07-16 21:13:04Z rwatson $
31 * $FreeBSD: head/sys/netinet/udp_var.h 196039 2009-08-02 19:43:32Z rwatson $
32 */
33
34#ifndef _NETINET_UDP_VAR_H_
35#define _NETINET_UDP_VAR_H_
36
37/*
38 * UDP kernel structures and variables.
39 */

--- 46 unchanged lines hidden (view full) ---

86 u_long udps_opackets; /* total output packets */
87 u_long udps_fastout; /* output packets on fast path */
88 /* of no socket on port, arrived as multicast */
89 u_long udps_noportmcast;
90 u_long udps_filtermcast; /* blocked by multicast filter */
91};
92
93#ifdef _KERNEL
32 */
33
34#ifndef _NETINET_UDP_VAR_H_
35#define _NETINET_UDP_VAR_H_
36
37/*
38 * UDP kernel structures and variables.
39 */

--- 46 unchanged lines hidden (view full) ---

86 u_long udps_opackets; /* total output packets */
87 u_long udps_fastout; /* output packets on fast path */
88 /* of no socket on port, arrived as multicast */
89 u_long udps_noportmcast;
90 u_long udps_filtermcast; /* blocked by multicast filter */
91};
92
93#ifdef _KERNEL
94/*
95 * In-kernel consumers can use these accessor macros directly to update
96 * stats.
97 */
94#define UDPSTAT_ADD(name, val) V_udpstat.name += (val)
95#define UDPSTAT_INC(name) UDPSTAT_ADD(name, 1)
98#define UDPSTAT_ADD(name, val) V_udpstat.name += (val)
99#define UDPSTAT_INC(name) UDPSTAT_ADD(name, 1)
100
101/*
102 * Kernel module consumers must use this accessor macro.
103 */
104void kmod_udpstat_inc(int statnum);
105#define KMOD_UDPSTAT_INC(name) \
106 kmod_udpstat_inc(offsetof(struct udpstat, name) / sizeof(u_long))
96#endif
97
98/*
99 * Names for UDP sysctl objects.
100 */
101#define UDPCTL_CHECKSUM 1 /* checksum UDP packets */
102#define UDPCTL_STATS 2 /* statistics (read-only) */
103#define UDPCTL_MAXDGRAM 3 /* max datagram size */

--- 49 unchanged lines hidden ---
107#endif
108
109/*
110 * Names for UDP sysctl objects.
111 */
112#define UDPCTL_CHECKSUM 1 /* checksum UDP packets */
113#define UDPCTL_STATS 2 /* statistics (read-only) */
114#define UDPCTL_MAXDGRAM 3 /* max datagram size */

--- 49 unchanged lines hidden ---