Deleted Added
full compact
ip_input.c (261601) ip_input.c (262763)
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

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)ip_input.c 8.2 (Berkeley) 1/4/94
30 */
31
32#include <sys/cdefs.h>
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

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)ip_input.c 8.2 (Berkeley) 1/4/94
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet/ip_input.c 261601 2014-02-07 15:18:23Z glebius $");
33__FBSDID("$FreeBSD: head/sys/netinet/ip_input.c 262763 2014-03-05 01:17:47Z glebius $");
34
35#include "opt_bootp.h"
36#include "opt_ipfw.h"
37#include "opt_ipstealth.h"
38#include "opt_ipsec.h"
39#include "opt_route.h"
40
41#include <sys/param.h>

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

1458 * Try to cache the route MTU from ip_output so we can consider it for
1459 * the ICMP_UNREACH_NEEDFRAG "Next-Hop MTU" field described in RFC1191.
1460 */
1461 bzero(&ro, sizeof(ro));
1462
1463 error = ip_output(m, NULL, &ro, IP_FORWARDING, NULL, NULL);
1464
1465 if (error == EMSGSIZE && ro.ro_rt)
34
35#include "opt_bootp.h"
36#include "opt_ipfw.h"
37#include "opt_ipstealth.h"
38#include "opt_ipsec.h"
39#include "opt_route.h"
40
41#include <sys/param.h>

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

1458 * Try to cache the route MTU from ip_output so we can consider it for
1459 * the ICMP_UNREACH_NEEDFRAG "Next-Hop MTU" field described in RFC1191.
1460 */
1461 bzero(&ro, sizeof(ro));
1462
1463 error = ip_output(m, NULL, &ro, IP_FORWARDING, NULL, NULL);
1464
1465 if (error == EMSGSIZE && ro.ro_rt)
1466 mtu = ro.ro_rt->rt_rmx.rmx_mtu;
1466 mtu = ro.ro_rt->rt_mtu;
1467 RO_RTFREE(&ro);
1468
1469 if (error)
1470 IPSTAT_INC(ips_cantforward);
1471 else {
1472 IPSTAT_INC(ips_forward);
1473 if (type)
1474 IPSTAT_INC(ips_redirectsent);

--- 265 unchanged lines hidden ---
1467 RO_RTFREE(&ro);
1468
1469 if (error)
1470 IPSTAT_INC(ips_cantforward);
1471 else {
1472 IPSTAT_INC(ips_forward);
1473 if (type)
1474 IPSTAT_INC(ips_redirectsent);

--- 265 unchanged lines hidden ---