Bug 63 - flag needed in an internet node to distinguish routers from hosts
: flag needed in an internet node to distinguish routers from hosts
Status: RESOLVED FIXED
: ns-3
routing
: ns-3-dev
: All All
: P2 minor
Assigned To:
:
:
:
: 384
  Show dependency treegraph
 
Reported: 2007-08-06 00:49 EDT by
Modified: 2009-06-26 04:57 EDT (History)


Attachments
tested patch (26.14 KB, patch)
2009-06-25 16:08 EDT, Tom Henderson
Details | Diff
additional patch for global routing (1.77 KB, patch)
2009-06-25 16:11 EDT, Tom Henderson
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-08-06 00:49:38 EDT
discussion from the list:
>> - whether to add some kind of flag in an InternetNode that is equivalent
>> >> to /proc/sys/net/ipv4/ip_forward , so that every InternetNode is not
>> >> necessarily a router.
> >
> >What is the use-case for that ? Is it not enough to not create a
> >forwarding table for that node ? If not, I suspect that we could
> >trivially add:
> >
> >Ipv4::EnableForwarding ()
> >Ipv4::DisableForwarding ()
> >Ipv4::IsForwardingEnabled ()
> >
> >

Issue left for further study.
------- Comment #1 From 2009-02-16 00:58:29 EDT -------
sliding to ns-3.5
------- Comment #2 From 2009-06-25 16:08:17 EDT -------
Created an attachment (id=483) [details]
tested patch

Passing this to release mgr. for consideration; note that it extends the Ipv4
API.  I tested this on some example scripts; both the operation of the
attribute and some of the underlying SetForwarding() calls.  
------- Comment #3 From 2009-06-25 16:11:40 EDT -------
Created an attachment (id=484) [details]
additional patch for global routing

This patch updates global routing to be aware of this interface state and
disable the advertisement of links for which forwarding is disabled.  Should be
applied on top of previous patch.
------- Comment #4 From 2009-06-26 04:57:25 EDT -------
changeset 0e15594f67f3