Deleted Added
full compact
ip_output.c (122588) ip_output.c (122702)
1/*
2 * Copyright (c) 1982, 1986, 1988, 1990, 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_output.c 8.3 (Berkeley) 1/21/94
1/*
2 * Copyright (c) 1982, 1986, 1988, 1990, 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_output.c 8.3 (Berkeley) 1/21/94
34 * $FreeBSD: head/sys/netinet/ip_output.c 122588 2003-11-12 23:35:40Z andre $
34 * $FreeBSD: head/sys/netinet/ip_output.c 122702 2003-11-14 21:02:22Z andre $
35 */
36
37#include "opt_ipfw.h"
38#include "opt_ipdn.h"
39#include "opt_ipdivert.h"
40#include "opt_ipfilter.h"
41#include "opt_ipsec.h"
42#include "opt_mac.h"

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

915 }
916 if (ia) { /* tell ip_input "dont filter" */
917 struct m_hdr tag;
918
919 tag.mh_type = MT_TAG;
920 tag.mh_flags = PACKET_TAG_IPFORWARD;
921 tag.mh_data = (caddr_t)args.next_hop;
922 tag.mh_next = m;
35 */
36
37#include "opt_ipfw.h"
38#include "opt_ipdn.h"
39#include "opt_ipdivert.h"
40#include "opt_ipfilter.h"
41#include "opt_ipsec.h"
42#include "opt_mac.h"

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

915 }
916 if (ia) { /* tell ip_input "dont filter" */
917 struct m_hdr tag;
918
919 tag.mh_type = MT_TAG;
920 tag.mh_flags = PACKET_TAG_IPFORWARD;
921 tag.mh_data = (caddr_t)args.next_hop;
922 tag.mh_next = m;
923 tag.mh_nextpkt = NULL;
923
924 if (m->m_pkthdr.rcvif == NULL)
925 m->m_pkthdr.rcvif = ifunit("lo0");
926 if (m->m_pkthdr.csum_flags & CSUM_DELAY_DATA) {
927 m->m_pkthdr.csum_flags |=
928 CSUM_DATA_VALID | CSUM_PSEUDO_HDR;
929 m0->m_pkthdr.csum_data = 0xffff;
930 }

--- 1342 unchanged lines hidden ---
924
925 if (m->m_pkthdr.rcvif == NULL)
926 m->m_pkthdr.rcvif = ifunit("lo0");
927 if (m->m_pkthdr.csum_flags & CSUM_DELAY_DATA) {
928 m->m_pkthdr.csum_flags |=
929 CSUM_DATA_VALID | CSUM_PSEUDO_HDR;
930 m0->m_pkthdr.csum_data = 0xffff;
931 }

--- 1342 unchanged lines hidden ---