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

ptp: add ipv6 support #25

Merged
merged 1 commit into from
Jul 5, 2017
Merged

Conversation

squeed
Copy link
Member

@squeed squeed commented Jun 16, 2017

  • Wait for addresses to leave tentative state before setting routes
  • Enable forwarding correctly
  • Set up masquerading according to the active protocol

Copy link
Member

@dcbw dcbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, should there be a testcase update for v6?

@@ -84,6 +84,11 @@ func setupContainerVeth(netns ns.NetNS, ifName string, mtu int, pr *current.Resu
return err
}

// Wait for addresses to leave tentative state (for up to 10 seconds)
if err := ip.SettleAddresses(ifName, 10); err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just make ConfigureIface() handle the settling? That might reduce code in the plugins a bit; we'd still need the Settle call for standalone IP assignment like bridge.go does though.

@squeed
Copy link
Member Author

squeed commented Jun 29, 2017

@dcbw updated. I added a stricter testcase that actually shells out to ping (don't hit me). Can you check that I got SettleAddresses right?

* Wait for addresses to leave tentative state before setting routes
* Enable forwarding correctly
* Set up masquerading according to the active protocol
@dcbw
Copy link
Member

dcbw commented Jul 5, 2017

LGTM

@squeed squeed merged commit a690f77 into containernetworking:master Jul 5, 2017
mansikulkarni96 pushed a commit to mansikulkarni96/plugins that referenced this pull request Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants