ns-allinone-2.35/ns-2.35/common/node.cc
NsObject* Node::intf_to_target(int32_t label)
{
	LinkHead *lhp = linklisthead_.lh_first;
	for (; lhp; lhp = lhp->nextlinkhead()) 
		if (label == lhp->label())
			return ((NsObject*) lhp);
	return NULL;
}
// Given an interface label for a NetworkInterface on this node, we return 
// the head of that link
Given an interface label for a NetworkInterface on this node, we return
the head of that link
Given an interface label for a NetworkInterface on this node we return the head of that link
NsObject* Node::intf_to_target(int32_t label)
{
	LinkHead *lhp = linklisthead_.lh_first;
	for (; lhp; lhp = lhp->nextlinkhead()) 
		if (label == lhp->label())
			return ((NsObject*) lhp);
	return NULL;
}
NsObject * Node :: intf_to_target ( int32_t label ) { LinkHead * lhp = linklisthead_ . lh_first ; for ( ; lhp ; lhp = lhp -> nextlinkhead ( ) ) if ( label == lhp -> label ( ) ) return ( ( NsObject * ) lhp ) ; return NULL ; }
Given an interface label for a NetworkInterface on this node, we return
the head of that link
Given an interface label for a NetworkInterface on this node we return the head of that link