if.c (274376) | if.c (274611) |
---|---|
1/*- 2 * Copyright (c) 1980, 1986, 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 * @(#)if.c 8.5 (Berkeley) 1/9/95 | 1/*- 2 * Copyright (c) 1980, 1986, 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 * @(#)if.c 8.5 (Berkeley) 1/9/95 |
30 * $FreeBSD: head/sys/net/if.c 274376 2014-11-11 12:05:59Z hselasky $ | 30 * $FreeBSD: head/sys/net/if.c 274611 2014-11-17 01:05:29Z melifaro $ |
31 */ 32 33#include "opt_compat.h" 34#include "opt_inet6.h" 35#include "opt_inet.h" 36 37#include <sys/param.h> 38#include <sys/types.h> --- 2450 unchanged lines hidden (view full) --- 2489 } 2490 /* 2491 * If the link MTU changed, do network layer specific procedure. 2492 */ 2493 if (ifp->if_mtu != oldmtu) { 2494#ifdef INET6 2495 nd6_setmtu(ifp); 2496#endif | 31 */ 32 33#include "opt_compat.h" 34#include "opt_inet6.h" 35#include "opt_inet.h" 36 37#include <sys/param.h> 38#include <sys/types.h> --- 2450 unchanged lines hidden (view full) --- 2489 } 2490 /* 2491 * If the link MTU changed, do network layer specific procedure. 2492 */ 2493 if (ifp->if_mtu != oldmtu) { 2494#ifdef INET6 2495 nd6_setmtu(ifp); 2496#endif |
2497 rt_updatemtu(ifp); |
|
2497 } 2498 break; 2499 } 2500 2501 case SIOCADDMULTI: 2502 case SIOCDELMULTI: 2503 if (cmd == SIOCADDMULTI) 2504 error = priv_check(td, PRIV_NET_ADDMULTI); --- 1494 unchanged lines hidden --- | 2498 } 2499 break; 2500 } 2501 2502 case SIOCADDMULTI: 2503 case SIOCDELMULTI: 2504 if (cmd == SIOCADDMULTI) 2505 error = priv_check(td, PRIV_NET_ADDMULTI); --- 1494 unchanged lines hidden --- |