FreeBSD/sys/netgraph/atm/ng_atm.c
/*
 * ATM packet is about to be output. The atm_pseudohdr is already prepended.
 * If the hook is set, reroute the packet to the hook.
 */
ATM packet is about to be output. The atm_pseudohdr is already prepended.
If the hook is set, reroute the packet to the hook.
ATM packet is about to be output . The atm_pseudohdr is already prepended . If the hook is set reroute the packet to the hook .
static int
ng_atm_output(struct ifnet *ifp, struct mbuf **mp)
{
	const node_p node = IFP2NG(ifp);
	const struct priv *priv;
	int error = 0;
	if (node == NULL)
		return (0);
	priv = NG_NODE_PRIVATE(node);
	if (priv->output) {
		NG_SEND_DATA_ONLY(error, priv->output, *mp);
		*mp = NULL;
	}
	return (error);
}
static int ng_atm_output ( struct ifnet * ifp , struct mbuf * * mp ) { const node_p node = IFP2NG ( ifp ) ; const struct priv * priv ; int error = 0 ; if ( node == NULL ) return ( 0 ) ; priv = NG_NODE_PRIVATE ( node ) ; if ( priv -> output ) { NG_SEND_DATA_ONLY ( error , priv -> output , * mp ) ; * mp = NULL ; } return ( error ) ; }
ATM packet is about to be output.
ATM packet is about to be output .