Hi,
I'm implementing a simple policy plugin , below is the pseudo-code 

Go over the packets vector 
While (there are packets to process )
{
Check if a packet match a specific rule 
  If yes - set the out-interface for the packet to be transmitted
  Else - drop packet
} 

2 Question - 
1. is there  any function/mechanism that implements a drop ? or any filed in 
the packet's metadata for drop marking ?
2. Regarding the set tx out interface - I see that I can set the 
sw_if_index[VLIB_TX] - so the packet will be later transmitted through this 
interface - is this correct ? 

Best Regards
Avi

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8445): https://lists.fd.io/g/vpp-dev/message/8445
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/14153536
Mute This Topic: https://lists.fd.io/mt/14153536/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to