in.c (81127) | in.c (83130) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1991, 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 * @(#)in.c 8.4 (Berkeley) 1/9/95 | 1/* 2 * Copyright (c) 1982, 1986, 1991, 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 * @(#)in.c 8.4 (Berkeley) 1/9/95 |
34 * $FreeBSD: head/sys/netinet/in.c 81127 2001-08-04 17:10:14Z ume $ | 34 * $FreeBSD: head/sys/netinet/in.c 83130 2001-09-06 02:40:43Z jlemon $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/sockio.h> 40#include <sys/malloc.h> 41#include <sys/socket.h> 42#include <sys/kernel.h> --- 362 unchanged lines hidden (view full) --- 405 * thing to do, but at least if we are running 406 * a routing process they will come back. 407 */ 408 in_ifadown(&ia->ia_ifa, 1); 409 /* 410 * XXX horrible hack to detect that we are being called 411 * from if_detach() 412 */ | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/sockio.h> 40#include <sys/malloc.h> 41#include <sys/socket.h> 42#include <sys/kernel.h> --- 362 unchanged lines hidden (view full) --- 405 * thing to do, but at least if we are running 406 * a routing process they will come back. 407 */ 408 in_ifadown(&ia->ia_ifa, 1); 409 /* 410 * XXX horrible hack to detect that we are being called 411 * from if_detach() 412 */ |
413 if (!ifnet_addrs[ifp->if_index - 1]) { | 413 if (ifaddr_byindex(ifp->if_index) != NULL) { |
414 in_pcbpurgeif0(LIST_FIRST(ripcbinfo.listhead), ifp); 415 in_pcbpurgeif0(LIST_FIRST(udbinfo.listhead), ifp); 416 } 417 418 /* 419 * Protect from ipintr() traversing address list 420 * while we're modifying it. 421 */ --- 435 unchanged lines hidden --- | 414 in_pcbpurgeif0(LIST_FIRST(ripcbinfo.listhead), ifp); 415 in_pcbpurgeif0(LIST_FIRST(udbinfo.listhead), ifp); 416 } 417 418 /* 419 * Protect from ipintr() traversing address list 420 * while we're modifying it. 421 */ --- 435 unchanged lines hidden --- |