Deleted Added
full compact
ip_reass.c (113255) ip_reass.c (114258)
1/*
2 * Copyright (c) 1982, 1986, 1988, 1993
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ip_input.c 8.2 (Berkeley) 1/4/94
1/*
2 * Copyright (c) 1982, 1986, 1988, 1993
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ip_input.c 8.2 (Berkeley) 1/4/94
34 * $FreeBSD: head/sys/netinet/ip_input.c 113255 2003-04-08 14:25:47Z des $
34 * $FreeBSD: head/sys/netinet/ip_input.c 114258 2003-04-29 21:36:18Z mdodd $
35 */
36
37#include "opt_bootp.h"
38#include "opt_ipfw.h"
39#include "opt_ipdn.h"
40#include "opt_ipdivert.h"
41#include "opt_ipfilter.h"
42#include "opt_ipstealth.h"

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

2047 mp = &(*mp)->m_next;
2048 }
2049 if (inp->inp_flags & INP_RECVDSTADDR) {
2050 *mp = sbcreatecontrol((caddr_t) &ip->ip_dst,
2051 sizeof(struct in_addr), IP_RECVDSTADDR, IPPROTO_IP);
2052 if (*mp)
2053 mp = &(*mp)->m_next;
2054 }
35 */
36
37#include "opt_bootp.h"
38#include "opt_ipfw.h"
39#include "opt_ipdn.h"
40#include "opt_ipdivert.h"
41#include "opt_ipfilter.h"
42#include "opt_ipstealth.h"

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

2047 mp = &(*mp)->m_next;
2048 }
2049 if (inp->inp_flags & INP_RECVDSTADDR) {
2050 *mp = sbcreatecontrol((caddr_t) &ip->ip_dst,
2051 sizeof(struct in_addr), IP_RECVDSTADDR, IPPROTO_IP);
2052 if (*mp)
2053 mp = &(*mp)->m_next;
2054 }
2055 if (inp->inp_flags & INP_RECVTTL) {
2056 *mp = sbcreatecontrol((caddr_t) &ip->ip_ttl,
2057 sizeof(u_char), IP_RECVTTL, IPPROTO_IP);
2058 if (*mp)
2059 mp = &(*mp)->m_next;
2060 }
2055#ifdef notyet
2056 /* XXX
2057 * Moving these out of udp_input() made them even more broken
2058 * than they already were.
2059 */
2060 /* options were tossed already */
2061 if (inp->inp_flags & INP_RECVOPTS) {
2062 *mp = sbcreatecontrol((caddr_t) opts_deleted_above,

--- 120 unchanged lines hidden ---
2061#ifdef notyet
2062 /* XXX
2063 * Moving these out of udp_input() made them even more broken
2064 * than they already were.
2065 */
2066 /* options were tossed already */
2067 if (inp->inp_flags & INP_RECVOPTS) {
2068 *mp = sbcreatecontrol((caddr_t) opts_deleted_above,

--- 120 unchanged lines hidden ---