Deleted Added
full compact
ip_output.c (81111) ip_output.c (83130)
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 81111 2001-08-03 17:36:06Z dcs $
34 * $FreeBSD: head/sys/netinet/ip_output.c 83130 2001-09-06 02:40:43Z jlemon $
35 */
36
37#define _IP_VHL
38
39#include "opt_ipfw.h"
40#include "opt_ipdn.h"
41#include "opt_ipdivert.h"
42#include "opt_ipfilter.h"

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

1510 struct ifnet *ifp;
1511
1512 if (ifindexp)
1513 *ifindexp = 0;
1514 if (ntohl(a->s_addr) >> 24 == 0) {
1515 ifindex = ntohl(a->s_addr) & 0xffffff;
1516 if (ifindex < 0 || if_index < ifindex)
1517 return NULL;
35 */
36
37#define _IP_VHL
38
39#include "opt_ipfw.h"
40#include "opt_ipdn.h"
41#include "opt_ipdivert.h"
42#include "opt_ipfilter.h"

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

1510 struct ifnet *ifp;
1511
1512 if (ifindexp)
1513 *ifindexp = 0;
1514 if (ntohl(a->s_addr) >> 24 == 0) {
1515 ifindex = ntohl(a->s_addr) & 0xffffff;
1516 if (ifindex < 0 || if_index < ifindex)
1517 return NULL;
1518 ifp = ifindex2ifnet[ifindex];
1518 ifp = ifnet_byindex(ifindex);
1519 if (ifindexp)
1520 *ifindexp = ifindex;
1521 } else {
1522 INADDR_TO_IFP(*a, ifp);
1523 }
1524 return ifp;
1525}
1526

--- 447 unchanged lines hidden ---
1519 if (ifindexp)
1520 *ifindexp = ifindex;
1521 } else {
1522 INADDR_TO_IFP(*a, ifp);
1523 }
1524 return ifp;
1525}
1526

--- 447 unchanged lines hidden ---