Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement connectioncontext/ipcontext/neighbor #37

Open
edwarnicke opened this issue Dec 2, 2020 · 0 comments
Open

Implement connectioncontext/ipcontext/neighbor #37

edwarnicke opened this issue Dec 2, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@edwarnicke
Copy link
Member

edwarnicke commented Dec 2, 2020

The Connection.ConnectionContext.IPContext.IPNeigbors allows the NSE to specify IPNeighbors associating an IP address to a hardware address that should be configured.

When the Client or NSE are vpp, there needs to be chain elements to set the ip neighbors for that connection (no matter its mechanism).

This is in direct analogy to the already existing connectioncontext/ipcontext/ipaddress.

Helpful notes for implementation:

  1. IPNeighborAddDel can be used to Add/Del IPNeighbors in VPP.
  2. You can retrieve the swIfIndex set by the mechanism chain elements using ifindex.Load. Example of Use.
  3. Use types.ToVPPMacAddress to convert net.HardwareAddr to the govpp ethernet_types.MacAddress
  4. Once implemented, please add to the connectioncontext/client.go and connectioncontext/server.go.

Running end to end can be done using cmd-forwarder-vpp.

@edwarnicke edwarnicke added the good first issue Good for newcomers label Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant