in.c (196714) | in.c (196995) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (C) 2001 WIDE Project. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 17 unchanged lines hidden (view full) --- 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * @(#)in.c 8.4 (Berkeley) 1/9/95 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (C) 2001 WIDE Project. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 17 unchanged lines hidden (view full) --- 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * @(#)in.c 8.4 (Berkeley) 1/9/95 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/netinet/in.c 196714 2009-08-31 21:02:48Z qingli $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/in.c 196995 2009-09-08 21:17:17Z np $"); |
35 36#include "opt_carp.h" 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/sockio.h> 41#include <sys/malloc.h> 42#include <sys/priv.h> --- 1370 unchanged lines hidden (view full) --- 1413 1414 lle->lle_tbl = llt; 1415 lle->lle_head = lleh; 1416 LIST_INSERT_HEAD(lleh, lle, lle_next); 1417 } else if (flags & LLE_DELETE) { 1418 if (!(lle->la_flags & LLE_IFADDR) || (flags & LLE_IFADDR)) { 1419 LLE_WLOCK(lle); 1420 lle->la_flags = LLE_DELETED; | 35 36#include "opt_carp.h" 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/sockio.h> 41#include <sys/malloc.h> 42#include <sys/priv.h> --- 1370 unchanged lines hidden (view full) --- 1413 1414 lle->lle_tbl = llt; 1415 lle->lle_head = lleh; 1416 LIST_INSERT_HEAD(lleh, lle, lle_next); 1417 } else if (flags & LLE_DELETE) { 1418 if (!(lle->la_flags & LLE_IFADDR) || (flags & LLE_IFADDR)) { 1419 LLE_WLOCK(lle); 1420 lle->la_flags = LLE_DELETED; |
1421 EVENTHANDLER_INVOKE(arp_update_event, lle); |
|
1421 LLE_WUNLOCK(lle); 1422#ifdef DIAGNOSTICS 1423 log(LOG_INFO, "ifaddr cache = %p is deleted\n", lle); 1424#endif 1425 } 1426 lle = (void *)-1; 1427 1428 } --- 117 unchanged lines hidden --- | 1422 LLE_WUNLOCK(lle); 1423#ifdef DIAGNOSTICS 1424 log(LOG_INFO, "ifaddr cache = %p is deleted\n", lle); 1425#endif 1426 } 1427 lle = (void *)-1; 1428 1429 } --- 117 unchanged lines hidden --- |