Subject: Possible memory leak for multicast all-hosts address?
To: None <tech-net@netbsd.org>
From: Shiva Shenoy <shiva_s@yahoo.com>
List: tech-net
Date: 10/07/2000 17:17:22
When an IP interface is configured using ifconfig, I
see that a
INADDR_ALLHOSTS_GROUP address gets attached to that
interface:
ini_ifinit() in netinet/in.c
if (ifp->if_flags & IFF_MULTICAST) {
struct in_addr addr;
addr.s_addr = INADDR_ALLHOSTS_GROUP;
in_addmulti(&addr, ifp);
}
But I dont see associated in_delmulti() when an
interface is deleted - "ifconfig de0 delete"
(Should that have been added to in_purgeaddr()?)
I have turned on the IFAREF_DEBUG option and see a
refcount going from 2 to 1 and thats it. No
ifafree is called.
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/