[Ns-developers] Does NS2 /NS3 support IPv6 ?
Tom Henderson
tomh at tomh.org
Fri Feb 13 12:13:48 PST 2009
>>
>> I was thinking, for starters, to try to add IPv6 addresses to
>> interfaces. For IPv4, I aligned things with how struct in_device
>> stores possibly multiple struct in_ifaddrs; this became class
>> Ipv4InterfaceAddress. The equivalent for IPv6 seems to be struct
>> rt6_info, so I was wondering whether we might define a class
>> Ipv6InterfaceAddress similarly, based on struct rt6_info.
>
> rt6_info is for routing (=> Ipv6Route).
Yes, you are right, I mixed that up in my notes. I should have said
inet6_ifaddr
> The way I deal with many addresses by interface have not change from
> what I did with svnet.u-strasbg.fr's ns-3-ipv6 repository, so
> Ipv6InterfaceAddress which contains address, mask, scope (link-local,
> global, ...) and state (tentative, tentative optimistic, preferered,
> permanent, homeaddress, ...). Then Ipv6Interface which have a list of
> Ipv6InterfaceAddress.
OK, sounds like what I was suggesting.
>
> I think we may do more than just adding address to interface. In fact
> there are not so many differences on routing stuff between IPv4 / IPv6
> just special handling for multicast link-local (For the moment in IPv6
> version of ns-3-ip, I do not pass by routing mechanism I directly sent
> or receive). For global multicast routing I think it works the same as
> IPv4 .
OK, thanks,
Tom
More information about the Ns-developers
mailing list