FreeBSD/sys/netgraph/atm/ng_atm.c
/*
 * ATM interface detached - destroy node.
 */
ATM interface detached - destroy node.
ATM interface detached - destroy node .
static void
ng_atm_detach(struct ifnet *ifp)
{
	const node_p node = IFP2NG(ifp);
	struct priv *priv;
	if(node == NULL)
		return;
	NG_NODE_REALLY_DIE(node);
	priv = NG_NODE_PRIVATE(node);
	IFP2NG_SET(priv->ifp, NULL);
	priv->ifp = NULL;
	ng_rmnode_self(node);
}
static void ng_atm_detach ( struct ifnet * ifp ) { const node_p node = IFP2NG ( ifp ) ; struct priv * priv ; if ( node == NULL ) return ; NG_NODE_REALLY_DIE ( node ) ; priv = NG_NODE_PRIVATE ( node ) ; IFP2NG_SET ( priv -> ifp , NULL ) ; priv -> ifp = NULL ; ng_rmnode_self ( node ) ; }
ATM interface detached - destroy node.
ATM interface detached - destroy node .