Deleted Added
full compact
udp_usrreq.c (137183) udp_usrreq.c (137386)
1/*
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95
1/*
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95
30 * $FreeBSD: head/sys/netinet/udp_usrreq.c 137183 2004-11-04 07:14:03Z phk $
30 * $FreeBSD: head/sys/netinet/udp_usrreq.c 137386 2004-11-08 14:44:54Z phk $
31 */
32
33#include "opt_ipsec.h"
34#include "opt_inet6.h"
35#include "opt_mac.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>

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

1106 */
1107static int
1108udp_peeraddr(struct socket *so, struct sockaddr **nam)
1109{
1110 return (in_setpeeraddr(so, nam, &udbinfo));
1111}
1112
1113struct pr_usrreqs udp_usrreqs = {
31 */
32
33#include "opt_ipsec.h"
34#include "opt_inet6.h"
35#include "opt_mac.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>

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

1106 */
1107static int
1108udp_peeraddr(struct socket *so, struct sockaddr **nam)
1109{
1110 return (in_setpeeraddr(so, nam, &udbinfo));
1111}
1112
1113struct pr_usrreqs udp_usrreqs = {
1114 udp_abort, pru_accept_notsupp, udp_attach, udp_bind, udp_connect,
1115 pru_connect2_notsupp, in_control, udp_detach, udp_disconnect,
1116 pru_listen_notsupp, udp_peeraddr, pru_rcvd_notsupp,
1117 pru_rcvoob_notsupp, udp_send, pru_sense_null, udp_shutdown,
1118 udp_sockaddr, sosend, soreceive, sopoll, in_pcbsosetlabel
1114 .pru_abort = udp_abort,
1115 .pru_attach = udp_attach,
1116 .pru_bind = udp_bind,
1117 .pru_connect = udp_connect,
1118 .pru_control = in_control,
1119 .pru_detach = udp_detach,
1120 .pru_disconnect = udp_disconnect,
1121 .pru_peeraddr = udp_peeraddr,
1122 .pru_send = udp_send,
1123 .pru_shutdown = udp_shutdown,
1124 .pru_sockaddr = udp_sockaddr,
1125 .pru_sosetlabel = in_pcbsosetlabel
1119};
1126};