Deleted Added
full compact
udp6_usrreq.c (62454) udp6_usrreq.c (62573)
1/*
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

55 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
56 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
57 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
58 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
59 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
60 * SUCH DAMAGE.
61 *
62 * @(#)udp_var.h 8.1 (Berkeley) 6/10/93
1/*
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

55 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
56 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
57 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
58 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
59 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
60 * SUCH DAMAGE.
61 *
62 * @(#)udp_var.h 8.1 (Berkeley) 6/10/93
63 * $FreeBSD: head/sys/netinet6/udp6_usrreq.c 62454 2000-07-03 09:35:31Z phk $
63 * $FreeBSD: head/sys/netinet6/udp6_usrreq.c 62573 2000-07-04 11:25:35Z phk $
64 */
65
66#include "opt_ipsec.h"
67
68#include <sys/param.h>
69#include <sys/kernel.h>
70#include <sys/mbuf.h>
71#include <sys/protosw.h>

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

454 uhp->uh_dport, &s,
455 uhp->uh_sport, cmd, udp_notify);
456 } else
457 (void) in6_pcbnotify(&udb, (struct sockaddr *)&sa6, 0,
458 &zeroin6_addr, 0, cmd, udp_notify);
459}
460
461static int
64 */
65
66#include "opt_ipsec.h"
67
68#include <sys/param.h>
69#include <sys/kernel.h>
70#include <sys/mbuf.h>
71#include <sys/protosw.h>

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

454 uhp->uh_dport, &s,
455 uhp->uh_sport, cmd, udp_notify);
456 } else
457 (void) in6_pcbnotify(&udb, (struct sockaddr *)&sa6, 0,
458 &zeroin6_addr, 0, cmd, udp_notify);
459}
460
461static int
462udp6_getcred (SYSCTL_HANDLER_ARGS)
462udp6_getcred(SYSCTL_HANDLER_ARGS)
463{
464 struct sockaddr_in6 addrs[2];
465 struct inpcb *inp;
466 int error, s;
467
468 error = suser(req->p);
469 if (error)
470 return (error);

--- 367 unchanged lines hidden ---
463{
464 struct sockaddr_in6 addrs[2];
465 struct inpcb *inp;
466 int error, s;
467
468 error = suser(req->p);
469 if (error)
470 return (error);

--- 367 unchanged lines hidden ---