Deleted Added
full compact
udp_usrreq.c (144260) udp_usrreq.c (145953)
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 144260 2005-03-29 01:10:46Z sam $
30 * $FreeBSD: head/sys/netinet/udp_usrreq.c 145953 2005-05-06 02:50:00Z cperciva $
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>

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

606 splx(s);
607 n = i;
608
609 error = 0;
610 for (i = 0; i < n; i++) {
611 inp = inp_list[i];
612 if (inp->inp_gencnt <= gencnt) {
613 struct xinpcb xi;
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>

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

606 splx(s);
607 n = i;
608
609 error = 0;
610 for (i = 0; i < n; i++) {
611 inp = inp_list[i];
612 if (inp->inp_gencnt <= gencnt) {
613 struct xinpcb xi;
614 bzero(&xi, sizeof(xi));
614 xi.xi_len = sizeof xi;
615 /* XXX should avoid extra copy */
616 bcopy(inp, &xi.xi_inp, sizeof *inp);
617 if (inp->inp_socket)
618 sotoxsocket(inp->inp_socket, &xi.xi_socket);
619 xi.xi_inp.inp_gencnt = inp->inp_gencnt;
620 error = SYSCTL_OUT(req, &xi, sizeof xi);
621 }

--- 510 unchanged lines hidden ---
615 xi.xi_len = sizeof xi;
616 /* XXX should avoid extra copy */
617 bcopy(inp, &xi.xi_inp, sizeof *inp);
618 if (inp->inp_socket)
619 sotoxsocket(inp->inp_socket, &xi.xi_socket);
620 xi.xi_inp.inp_gencnt = inp->inp_gencnt;
621 error = SYSCTL_OUT(req, &xi, sizeof xi);
622 }

--- 510 unchanged lines hidden ---