FreeBSD/sys/netinet/ip_mroute.c
/*
 * Return the local address used by this vif
 */
Return the local address used by this vif
Return the local address used by this vif
static u_long
X_ip_mcast_src(int vifi)
{
	in_addr_t addr;
	addr = INADDR_ANY;
	if (vifi < 0)
		return (addr);
	VIF_LOCK();
	if (vifi < V_numvifs)
		addr = V_viftable[vifi].v_lcl_addr.s_addr;
	VIF_UNLOCK();
	return (addr);
}
static u_long X_ip_mcast_src ( int vifi ) { in_addr_t addr ; addr = INADDR_ANY ; if ( vifi < 0 ) return ( addr ) ; VIF_LOCK ( ) ; if ( vifi < V_numvifs ) addr = V_viftable [ vifi ] . v_lcl_addr . s_addr ; VIF_UNLOCK ( ) ; return ( addr ) ; }
Return the local address used by this vif
Return the local address used by this vif