Deleted Added
full compact
route6.c (181803) route6.c (183550)
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

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

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 * $KAME: route6.c,v 1.24 2001/03/14 03:07:05 itojun Exp $
30 */
31
32#include <sys/cdefs.h>
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

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

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 * $KAME: route6.c,v 1.24 2001/03/14 03:07:05 itojun Exp $
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet6/route6.c 181803 2008-08-17 23:27:27Z bz $");
33__FBSDID("$FreeBSD: head/sys/netinet6/route6.c 183550 2008-10-02 15:37:58Z zec $");
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37
38#include <sys/param.h>
39#include <sys/mbuf.h>
40#include <sys/socket.h>
41#include <sys/systm.h>

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

60
61/*
62 * proto - is unused
63 */
64
65int
66route6_input(struct mbuf **mp, int *offp, int proto)
67{
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37
38#include <sys/param.h>
39#include <sys/mbuf.h>
40#include <sys/socket.h>
41#include <sys/systm.h>

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

60
61/*
62 * proto - is unused
63 */
64
65int
66route6_input(struct mbuf **mp, int *offp, int proto)
67{
68 INIT_VNET_INET6(curvnet);
68 struct ip6_hdr *ip6;
69 struct mbuf *m = *mp;
70 struct ip6_rthdr *rh;
71 int off = *offp, rhlen;
72 struct ip6aux *ip6a;
73
74 ip6a = ip6_findaux(m);
75 if (ip6a) {

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

145 *
146 * RFC2292 backward compatibility warning: no support for strict/loose bitmap,
147 * as it was dropped between RFC1883 and RFC2460.
148 */
149#if 0
150static int
151ip6_rthdr0(struct mbuf *m, struct ip6_hdr *ip6, struct ip6_rthdr0 *rh0)
152{
69 struct ip6_hdr *ip6;
70 struct mbuf *m = *mp;
71 struct ip6_rthdr *rh;
72 int off = *offp, rhlen;
73 struct ip6aux *ip6a;
74
75 ip6a = ip6_findaux(m);
76 if (ip6a) {

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

146 *
147 * RFC2292 backward compatibility warning: no support for strict/loose bitmap,
148 * as it was dropped between RFC1883 and RFC2460.
149 */
150#if 0
151static int
152ip6_rthdr0(struct mbuf *m, struct ip6_hdr *ip6, struct ip6_rthdr0 *rh0)
153{
154 INIT_VNET_INET6(curvnet);
153 int addrs, index;
154 struct in6_addr *nextaddr, tmpaddr;
155 struct in6_ifaddr *ifa;
156
157 if (rh0->ip6r0_segleft == 0)
158 return (0);
159
160 if (rh0->ip6r0_len % 2

--- 84 unchanged lines hidden ---
155 int addrs, index;
156 struct in6_addr *nextaddr, tmpaddr;
157 struct in6_ifaddr *ifa;
158
159 if (rh0->ip6r0_segleft == 0)
160 return (0);
161
162 if (rh0->ip6r0_len % 2

--- 84 unchanged lines hidden ---