svn commit: r186010 - projects/arpv2_merge_1/sys/netinet
Kip Macy
kmacy at FreeBSD.org
Fri Dec 12 16:01:16 PST 2008
Author: kmacy
Date: Sat Dec 13 00:01:16 2008
New Revision: 186010
URL: http://svn.freebsd.org/changeset/base/186010
Log:
return non-NULL (-1) if the entry to be deleted is found
Modified:
projects/arpv2_merge_1/sys/netinet/in.c
Modified: projects/arpv2_merge_1/sys/netinet/in.c
==============================================================================
--- projects/arpv2_merge_1/sys/netinet/in.c Fri Dec 12 23:17:00 2008 (r186009)
+++ projects/arpv2_merge_1/sys/netinet/in.c Sat Dec 13 00:01:16 2008 (r186010)
@@ -1145,9 +1145,10 @@ in_lltable_lookup(struct lltable *llt, u
#ifdef DIAGNOSTICS
log(LOG_INFO, "ifaddr cache = %p is deleted\n", lle);
#endif
- lle = NULL;
+ lle = (void *)-1;
+
}
- if (lle != NULL) {
+ if (lle != NULL && lle != (void *)-1) {
if (flags & LLE_EXCLUSIVE)
LLE_WLOCK(lle);
else
More information about the svn-src-projects
mailing list