Deleted Added
full compact
ip_fil_freebsd.c (260715) ip_fil_freebsd.c (262763)
1/* $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c 260715 2014-01-16 13:42:14Z glebius $ */
1/* $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c 262763 2014-03-05 01:17:47Z glebius $ */
2
3/*
4 * Copyright (C) 2012 by Darren Reed.
5 *
6 * See the IPFILTER.LICENCE file for details on licencing.
7 */
8#if !defined(lint)
9static const char sccsid[] = "@(#)ip_fil.c 2.41 6/5/96 (C) 1993-2000 Darren Reed";

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

797 error = EHOSTUNREACH;
798 else
799 error = ENETUNREACH;
800 goto bad;
801 }
802 if (ro->ro_rt->rt_flags & RTF_GATEWAY)
803 dst = (struct sockaddr_in *)ro->ro_rt->rt_gateway;
804 if (ro->ro_rt)
2
3/*
4 * Copyright (C) 2012 by Darren Reed.
5 *
6 * See the IPFILTER.LICENCE file for details on licencing.
7 */
8#if !defined(lint)
9static const char sccsid[] = "@(#)ip_fil.c 2.41 6/5/96 (C) 1993-2000 Darren Reed";

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

797 error = EHOSTUNREACH;
798 else
799 error = ENETUNREACH;
800 goto bad;
801 }
802 if (ro->ro_rt->rt_flags & RTF_GATEWAY)
803 dst = (struct sockaddr_in *)ro->ro_rt->rt_gateway;
804 if (ro->ro_rt)
805 ro->ro_rt->rt_use++;
805 counter_u64_add(ro->ro_rt->rt_pksent, 1);
806
807 /*
808 * For input packets which are being "fastrouted", they won't
809 * go back through output filtering and miss their chance to get
810 * NAT'd and counted. Duplicated packets aren't considered to be
811 * part of the normal packet stream, so do not NAT them or pass
812 * them through stateful checking, etc.
813 */

--- 654 unchanged lines hidden ---
806
807 /*
808 * For input packets which are being "fastrouted", they won't
809 * go back through output filtering and miss their chance to get
810 * NAT'd and counted. Duplicated packets aren't considered to be
811 * part of the normal packet stream, so do not NAT them or pass
812 * them through stateful checking, etc.
813 */

--- 654 unchanged lines hidden ---