[Ns-bugs] [Bug 231] SocketAddressTag needs to be removed from a packet before forwarding the packet to the user

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Mon Feb 20 09:59:29 PST 2012


https://www.nsnam.org/bugzilla/show_bug.cgi?id=231

--- Comment #13 from Tommaso Pecorella <tommaso.pecorella at unifi.it> 2012-02-20 12:59:28 EST ---
The patch seems fine, however I have a question.

>From what I got about the issue:
- it seems perfectly legal to add two tags of the identical type. It's up to
the Tag Reader and Tag writer to prove and maintain tags uniqueness (when
needed).

>From a design point of view, shouldn't it better to add a property to the tags
"unique", so to (if the tag is marked unique:
- when the tag is added, discard or overwrite the old one.

This approach would fix to the boots the issue, also for future tags. Moreover
is more foolproof. The cons is a slightly increased overhead when adding a tag.

Cheers,

T.

-- 
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list