Deleted Added
full compact
dest6.c (181803) dest6.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: dest6.c,v 1.59 2003/07/11 13:21:16 t-momose 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: dest6.c,v 1.59 2003/07/11 13:21:16 t-momose Exp $
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet6/dest6.c 181803 2008-08-17 23:27:27Z bz $");
33__FBSDID("$FreeBSD: head/sys/netinet6/dest6.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/systm.h>
40#include <sys/malloc.h>
41#include <sys/mbuf.h>

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

57#include <netinet/icmp6.h>
58
59/*
60 * Destination options header processing.
61 */
62int
63dest6_input(struct mbuf **mp, int *offp, int proto)
64{
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/malloc.h>
41#include <sys/mbuf.h>

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

57#include <netinet/icmp6.h>
58
59/*
60 * Destination options header processing.
61 */
62int
63dest6_input(struct mbuf **mp, int *offp, int proto)
64{
65 INIT_VNET_INET6(curvnet);
65 struct mbuf *m = *mp;
66 int off = *offp, dstoptlen, optlen;
67 struct ip6_dest *dstopts;
68 u_int8_t *opt;
69
70 /* validation of the length of the header */
71#ifndef PULLDOWN_TEST
72 IP6_EXTHDR_CHECK(m, off, sizeof(*dstopts), IPPROTO_DONE);

--- 52 unchanged lines hidden ---
66 struct mbuf *m = *mp;
67 int off = *offp, dstoptlen, optlen;
68 struct ip6_dest *dstopts;
69 u_int8_t *opt;
70
71 /* validation of the length of the header */
72#ifndef PULLDOWN_TEST
73 IP6_EXTHDR_CHECK(m, off, sizeof(*dstopts), IPPROTO_DONE);

--- 52 unchanged lines hidden ---