Bug 1045

Summary: UDP support for IPv6
Product: ns-3 Reporter: Ken Renard <kenneth.renard>
Component: internetAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: enhancement CC: gjcarneiro, rodmenega
Priority: P5    
Version: ns-3.9   
Hardware: All   
OS: All   
Attachments: Patches to ns-3.9 for rudimentary UDP-over-IPv6 support

Description Ken Renard 2011-01-24 11:23:21 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!
Comment 1 Gustavo J. A. M. Carneiro 2011-01-24 12:37:06 UTC
Eek!  Shouldn't UDP sockets for IPv4 and IPv6 be exactly the same?  What am I missing?
Comment 2 Ken Renard 2011-01-24 13:55:20 UTC
(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.
Comment 3 rodolfo 2011-04-25 17:45:07 UTC
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
Comment 4 rodolfo 2011-04-25 17:47:16 UTC
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
Comment 5 Tommaso Pecorella 2012-02-20 12:49:44 UTC
Integrated with changeset 7717 - cfa1741013dd