sys/netccitt/llc_subr.c
/* Fetch the sdl of the associated if */
Fetch the sdl of the associated if
Fetch the sdl of the associated if
struct sockaddr_dl * 
sdl_getaddrif(struct ifnet *ifp)
{
	register struct ifaddr *ifa;
	for(ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next) 	
		if (ifa->ifa_addr->sa_family == AF_LINK ) 		
			return((struct sockaddr_dl *)(ifa->ifa_addr));
	return((struct sockaddr_dl *)0);
}
struct sockaddr_dl * sdl_getaddrif ( struct ifnet * ifp ) { register struct ifaddr * ifa ; for ( ifa = ifp -> if_addrlist ; ifa ; ifa = ifa -> ifa_next ) if ( ifa -> ifa_addr -> sa_family == AF_LINK ) return ( ( struct sockaddr_dl * ) ( ifa -> ifa_addr ) ) ; return ( ( struct sockaddr_dl * ) 0 ) ; }
Fetch the sdl of the associated if
Fetch the sdl of the associated if