Deleted Added
full compact
ip_icmp.c (122708) ip_icmp.c (122921)
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_icmp.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_icmp.c 8.2 (Berkeley) 1/4/94
34 * $FreeBSD: head/sys/netinet/ip_icmp.c 122708 2003-11-14 21:48:57Z andre $
34 * $FreeBSD: head/sys/netinet/ip_icmp.c 122921 2003-11-20 19:47:31Z andre $
35 */
36
37#include "opt_ipsec.h"
38#include "opt_mac.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/mac.h>

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

410 * lock bit, indicating that we are no longer doing MTU
411 * discovery.
412 */
413 if (code == PRC_MSGSIZE) {
414 struct rtentry *rt;
415 int mtu;
416
417 rt = rtalloc1((struct sockaddr *)&icmpsrc, 0,
35 */
36
37#include "opt_ipsec.h"
38#include "opt_mac.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/mac.h>

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

410 * lock bit, indicating that we are no longer doing MTU
411 * discovery.
412 */
413 if (code == PRC_MSGSIZE) {
414 struct rtentry *rt;
415 int mtu;
416
417 rt = rtalloc1((struct sockaddr *)&icmpsrc, 0,
418 RTF_CLONING | RTF_PRCLONING);
418 RTF_CLONING);
419 if (rt && (rt->rt_flags & RTF_HOST)
420 && !(rt->rt_rmx.rmx_locks & RTV_MTU)) {
421 mtu = ntohs(icp->icmp_nextmtu);
422 if (!mtu)
423 mtu = ip_next_mtu(rt->rt_rmx.rmx_mtu,
424 1);
425#ifdef DEBUG_MTUDISC
426 printf("MTU for %s reduced to %d\n",

--- 458 unchanged lines hidden ---
419 if (rt && (rt->rt_flags & RTF_HOST)
420 && !(rt->rt_rmx.rmx_locks & RTV_MTU)) {
421 mtu = ntohs(icp->icmp_nextmtu);
422 if (!mtu)
423 mtu = ip_next_mtu(rt->rt_rmx.rmx_mtu,
424 1);
425#ifdef DEBUG_MTUDISC
426 printf("MTU for %s reduced to %d\n",

--- 458 unchanged lines hidden ---