Deleted Added
full compact
ip_input.c (24590) ip_input.c (25723)
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 * $Id: ip_input.c,v 1.1.1.2 1997/04/03 10:39:25 darrenr Exp $
34 * $Id: ip_input.c,v 1.61 1997/04/03 10:47:10 darrenr Exp $
35 * $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $
36 */
37
38#define _IP_VHL
39
40#include "opt_ipfw.h"
41
42#include <stddef.h>

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

381 /*
382 * Check our list of addresses, to see if the packet is for us.
383 */
384 for (ia = in_ifaddrhead.tqh_first; ia; ia = ia->ia_link.tqe_next) {
385#define satosin(sa) ((struct sockaddr_in *)(sa))
386
387 if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr)
388 goto ours;
35 * $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $
36 */
37
38#define _IP_VHL
39
40#include "opt_ipfw.h"
41
42#include <stddef.h>

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

381 /*
382 * Check our list of addresses, to see if the packet is for us.
383 */
384 for (ia = in_ifaddrhead.tqh_first; ia; ia = ia->ia_link.tqe_next) {
385#define satosin(sa) ((struct sockaddr_in *)(sa))
386
387 if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr)
388 goto ours;
389#ifdef BOOTP_COMPAT
390 if (IA_SIN(ia)->sin_addr.s_addr == INADDR_ANY)
391 goto ours;
392#endif
389 if (ia->ia_ifp && ia->ia_ifp->if_flags & IFF_BROADCAST) {
390 if (satosin(&ia->ia_broadaddr)->sin_addr.s_addr ==
391 ip->ip_dst.s_addr)
392 goto ours;
393 if (ip->ip_dst.s_addr == ia->ia_netbroadcast.s_addr)
394 goto ours;
395 }
396 }

--- 1039 unchanged lines hidden ---
393 if (ia->ia_ifp && ia->ia_ifp->if_flags & IFF_BROADCAST) {
394 if (satosin(&ia->ia_broadaddr)->sin_addr.s_addr ==
395 ip->ip_dst.s_addr)
396 goto ours;
397 if (ip->ip_dst.s_addr == ia->ia_netbroadcast.s_addr)
398 goto ours;
399 }
400 }

--- 1039 unchanged lines hidden ---