Bug 2348

Summary: patch: attribute for set of Ipv4Address instances
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: networkAssignee: ns-bugs <ns-bugs>
Status: PATCH PENDING ---    
Severity: enhancement CC: tommaso.pecorella
Priority: P5    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: possible patch
possible patch (with IPv6)

Description Tom Henderson 2016-03-25 17:27:26 EDT
Possible implementation to respond to the request to be able to pass in a set of IP addresses as an attribute.  Thread is here.

http://mailman.isi.edu/pipermail/ns-developers/2016-March/013494.html
Comment 1 Tom Henderson 2016-03-25 17:28:59 EDT
Created attachment 2353 [details]
possible patch

This could of course be adapted for other address types.
Comment 2 Tommaso Pecorella 2016-03-26 08:42:06 EDT
(In reply to Tom Henderson from comment #1)
> Created attachment 2353 [details]
> possible patch
> 
> This could of course be adapted for other address types.

I see no problems at all in this attribute extension, but I have a question.
What about having an Address vector attribute (i.e., the base instance) ?

I haven't checked it, perhaps having just an Address vector will be a nightmare with the checker.
Comment 3 Tom Henderson 2016-03-26 12:26:15 EDT
Created attachment 2354 [details]
possible patch (with IPv6)

I will look into making this use base class Address; in the meantime, here is the v6-compatible version of the previous patch.