Re: [vpp-dev] plugin to filter packets

2021-05-19 Thread Matthew Smith via lists.fd.io
Hi Alex, In order to drop some packets while passing all others on to the next node in the feature arc, you can use vnet_feature_next(). It will find the index of the next node on the feature arc and populate it into a pointer that you pass in. The next_nodes in your node declaration (

[vpp-dev] plugin to filter packets

2021-05-18 Thread Alex Syrnikov
Hello, VPP developers. I can't understand how to write plugin to filter some packets and passing others. I need to hook on some feature graph, check every packet and remove matched. I bound required IP for interface, hooked arc "ip4-local" (it can also be "ip4-unicast") with my node "checker"