Bugzilla – Bug 1045
UDP support for IPv6
Last modified: 2012-02-20 12:49:44 UTC
Created attachment 1027 [details] Patches to ns-3.9 for rudimentary UDP-over-IPv6 support Patches for supporting basic UDP-over-IPv6. This patch set is bascially a 'cut-and-paste' of the UDP for IPv4 implementation. Comments, suggestions, improvements welcome!
Eek! Shouldn't UDP sockets for IPv4 and IPv6 be exactly the same? What am I missing?
(In reply to comment #1) > Eek! Shouldn't UDP sockets for IPv4 and IPv6 be exactly the same? What am I > missing? In theory, yes, they should be the same objects, with the only difference being the address of the other end-point (and internally, header checksums). I tried to implement this way, but got caught up in the fact that UDP sockets inherited from both Ipv4L4Protocol and Ipv6L4Protocol. I would much rather see it implemented as one socket with multiple types of addresses. If someone has interest in trying a new way to code this, I would gladly help out. At least it's not far off from the socket() system call which requires that you specify the IP version at time of socket creation.
Have you already tested your code? i try pass upd ipv4 to ipv6 like you but when i run the packet in ipv6-interface class disappear. Can I follow your patche? Could you please help me. Could you send me your codes? thanks so much
Integrated with changeset 7717 - cfa1741013dd