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

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

124 { "recvspace", CTLTYPE_INT }, \
125 { "pcblist", CTLTYPE_STRUCT }, \
126}
127
128#ifdef _KERNEL
129SYSCTL_DECL(_net_inet_udp);
130
131extern struct pr_usrreqs udp_usrreqs;
32 */
33
34#ifndef _NETINET_UDP_VAR_H_
35#define _NETINET_UDP_VAR_H_
36
37/*
38 * UDP kernel structures and variables.
39 */

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

124 { "recvspace", CTLTYPE_INT }, \
125 { "pcblist", CTLTYPE_STRUCT }, \
126}
127
128#ifdef _KERNEL
129SYSCTL_DECL(_net_inet_udp);
130
131extern struct pr_usrreqs udp_usrreqs;
132
133VNET_DECLARE(struct inpcbhead, udb);
134VNET_DECLARE(struct inpcbinfo, udbinfo);
132VNET_DECLARE(struct inpcbhead, udb);
133VNET_DECLARE(struct inpcbinfo, udbinfo);
135VNET_DECLARE(struct udpstat, udpstat);
136VNET_DECLARE(int, udp_blackhole);
137
138#define V_udb VNET(udb)
139#define V_udbinfo VNET(udbinfo)
134#define V_udb VNET(udb)
135#define V_udbinfo VNET(udbinfo)
140#define V_udpstat VNET(udpstat)
141#define V_udp_blackhole VNET(udp_blackhole)
142
143extern u_long udp_sendspace;
144extern u_long udp_recvspace;
136
137extern u_long udp_sendspace;
138extern u_long udp_recvspace;
139VNET_DECLARE(struct udpstat, udpstat);
140VNET_DECLARE(int, udp_blackhole);
141#define V_udpstat VNET(udpstat)
142#define V_udp_blackhole VNET(udp_blackhole)
145extern int udp_log_in_vain;
146
147int udp_newudpcb(struct inpcb *);
148void udp_discardcb(struct udpcb *);
149
150void udp_ctlinput(int, struct sockaddr *, void *);
151int udp_ctloutput(struct socket *, struct sockopt *);
152void udp_init(void);
153#ifdef VIMAGE
154void udp_destroy(void);
155#endif
156void udp_input(struct mbuf *, int);
157struct inpcb *udp_notify(struct inpcb *inp, int errno);
158int udp_shutdown(struct socket *so);
159
160int udp_set_kernel_tunneling(struct socket *so, udp_tun_func_t f);
161#endif
162
163#endif
143extern int udp_log_in_vain;
144
145int udp_newudpcb(struct inpcb *);
146void udp_discardcb(struct udpcb *);
147
148void udp_ctlinput(int, struct sockaddr *, void *);
149int udp_ctloutput(struct socket *, struct sockopt *);
150void udp_init(void);
151#ifdef VIMAGE
152void udp_destroy(void);
153#endif
154void udp_input(struct mbuf *, int);
155struct inpcb *udp_notify(struct inpcb *inp, int errno);
156int udp_shutdown(struct socket *so);
157
158int udp_set_kernel_tunneling(struct socket *so, udp_tun_func_t f);
159#endif
160
161#endif