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

nat64: Handle "Well-Known Prefix" 64:ff9b::/96 #1141

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

uknoblic
Copy link
Contributor

I added the well-known-prefix to the list of allowed prefixes in ip64-addr.c. Private IPv4 addresses are dropped as specified in RFC 6052.

@alignan
Copy link
Member

alignan commented Apr 29, 2016

Seems legit to me, are there any comments about this?

I would suggest squashing into a single commit and merge.

}

/* 198.51.100.0/24 */
uip_ipaddr(&ipaddr, 198, 51, 100, 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

I would add the uip_ipaddr(&mask, 255, 255, 255, 0); line here and in the following check as well.
Otherwise these will quickly fail if someone misses to see the link and adds a check in between somewhere.

Copy link

@greg-king5 greg-king5 Apr 29, 2016

Choose a reason for hiding this comment

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

I think that some code doesn't need to be added here. I think that some comments will be enough. They should say that those checks depend on the mask value from the previous check.

@laurentderu
Copy link
Member

This code will break existing NAT64 example as the prefix used is ::ffff:0, the examples should also be updated, or make the NAT64 prefix configurable (This is what we did in 6LBR)

Also, forbiding private network is not a good idea, in several deployment NAT64 is used to allow communication between the WSN and the LAN which is using private addresses.

@alignan
Copy link
Member

alignan commented May 2, 2016

@laurentderu thanks! I forgot about the NAT64 example.

@alignan
Copy link
Member

alignan commented Jun 3, 2016

@uknoblic any update about this PR?

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.

None yet

5 participants