[Ns-developers] Requesting help for csma promiscuousmode(resend)

Gustavo Carneiro gjcarneiro at gmail.com
Wed Jul 16 08:14:37 PDT 2008


2008/7/15 <craigdo at ee.washington.edu>:

>
> > If you want a slightly cleaner API, albeit not preserving backward
> > compatibility (requires callback signature change), I would
> > suggest the
> > solution I already protyped which adds a PacketType parameter
> > like the one
> > Linux kernel uses: PACKET_HOST, PACKET_BROADCAST, PACKET_MULTICAST,
> > PACKET_OTHERHOST.  Then the promiscuous callback could
> > receive _all_ packets
> > because it would be easy to filter.
>
> This strikes me as the most intuitive thing to do ...
>
> The non-promiscuous callback receives PACKET_HOST, PACKET_BROADCAST and
> PACKET_MULTICAST as appropriate; and the promiscuous callback adds
> PACKET_OTHERHOST (receives everything) and filters as appropriate.


This is now done in http://code.nsnam.org/gjc/ns-3-learning-bridge/

If no further comments are received, I assume everything is ready for a
merge.  Mathieu's requested BridgeChannel
has also been implemented before.  We have dual callbacks in netdevice,
promiscuous mode, a SupportsPromiscuous method.  API at NetDevice level is
preserved, but API at Node protocol handler level had to change.

-- 
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert


More information about the Ns-developers mailing list