[Ns-developers] TCP and UDP layer refactoring

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Mon Jul 7 10:05:56 PDT 2008


On Mon, 2008-07-07 at 06:08 -0700, Tom Henderson wrote:

> > Ok so if I summarize :
> > - Remove incomingInterface from EndPointDemux::Lookup() and associate code.
> > - One EndPointDemux with a ::Lookup() function for each address family 
> > (IPv4 and IPv6).
> > - *L4Protocol and *SocketImpl use Address and test with 
> > *Address::IsMatchingType().
> > - Have a single tag called SocketAddressesTag with Address parameters 
> > and test as usual (*Address::IsMatchingType).
> 
> I am still not clear on whether and where tags for these addresses are 
> needed, and where they are removed.

That goes back to another discussion but tags should not be removed once
added, mainly because it is too painful to do. Another way to deal with
this is to replace the use of Packet::FindFirstMatchingTag by
Packet::FindLastMatchingTag (which is not implemented yet, but should
not be too hard to do).

Mathieu



More information about the Ns-developers mailing list