You have: vlib_node_runtime_t *node. Use n = vlib_get_node(vm, 
node->node_index) to recover the vlib_node_t. 

Index n->next_nodes to recover the node index corresponding to the next index 
you have in mind: nNext = vlib_get_node (vm, n->next_nodes[i])  

HTH... Dave

-----Original Message-----
From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Prashant Upadhyaya
Sent: Monday, March 4, 2019 9:29 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] Regarding node on a feature arc

Hi,

When a node is on a feature arc, a good practice for that node is to inspect 
the next feature with vnet_feature_next, obtain the next0 from that and send 
the packets to the next0. All this works properly.

My question -- how can I obtain the true vlib_node_t pointer corresponding to 
the next0 as obtained from vnet_feature_next ?

Regards
-Prashant
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12415): https://lists.fd.io/g/vpp-dev/message/12415
Mute This Topic: https://lists.fd.io/mt/30213927/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to