You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often, the NSE will simply allow vpp itself to set a random Mac address for the interface it is creating. In this case, that Mac address needs to be retrieved to set the EthernetContext.DstMac.
Implementation notes:
You need only implement the NetworkServiceServer in this case.
SwInterfaceGetMacAddress can be used to retrieve the Mac address of the interface given the swIfIndex.
You can retrieve the swIfIndex set by the mechanism chain elements using ifindex.Load. [Example of Use]
The Connection.ConnnectionContext.EthernetContext allows the NSE to specify the Source and Dest Mac address.
Often, the NSE will simply allow vpp itself to set a random Mac address for the interface it is creating. In this case, that Mac address needs to be retrieved to set the EthernetContext.DstMac.
Implementation notes:
Running end to end can be done using cmd-forwarder-vpp.
The text was updated successfully, but these errors were encountered: