Deleted Added
full compact
raw_ip6.c (171259) raw_ip6.c (171260)
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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
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 *
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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
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 * $FreeBSD: head/sys/netinet6/raw_ip6.c 171259 2007-07-05 16:23:49Z delphij $
29 * $FreeBSD: head/sys/netinet6/raw_ip6.c 171260 2007-07-05 16:29:40Z delphij $
30 */
31
32/*-
33 * Copyright (c) 1982, 1986, 1988, 1993
34 * The Regents of the University of California. All rights reserved.
35 *
36 * Redistribution and use in source and binary forms, with or without
37 * modification, are permitted provided that the following conditions

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

732 INP_LOCK(inp);
733 socantsendmore(so);
734 INP_UNLOCK(inp);
735 return 0;
736}
737
738static int
739rip6_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
30 */
31
32/*-
33 * Copyright (c) 1982, 1986, 1988, 1993
34 * The Regents of the University of California. All rights reserved.
35 *
36 * Redistribution and use in source and binary forms, with or without
37 * modification, are permitted provided that the following conditions

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

732 INP_LOCK(inp);
733 socantsendmore(so);
734 INP_UNLOCK(inp);
735 return 0;
736}
737
738static int
739rip6_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
740 struct mbuf *control, struct thread *td)
740 struct mbuf *control, struct thread *td)
741{
742 struct inpcb *inp = sotoinpcb(so);
743 struct sockaddr_in6 tmp;
744 struct sockaddr_in6 *dst;
745 int ret;
746
747 KASSERT(inp != NULL, ("rip6_send: inp == NULL"));
748 INP_INFO_WLOCK(&ripcbinfo);

--- 63 unchanged lines hidden ---
741{
742 struct inpcb *inp = sotoinpcb(so);
743 struct sockaddr_in6 tmp;
744 struct sockaddr_in6 *dst;
745 int ret;
746
747 KASSERT(inp != NULL, ("rip6_send: inp == NULL"));
748 INP_INFO_WLOCK(&ripcbinfo);

--- 63 unchanged lines hidden ---