Skip to content

sixlowpan: use rfc 7973 EtherType and remove obsolete attributes

Tommaso Pecorella requested to merge tommypec/ns-3-dev:Rfc7973 into master

RFC 7973 does provide an EtherType for 6LoWPAN. Hence, this MR forces 6LoWPAN to use the correct EtherType (0xA0ED).

As a consequence, it also removes the two attributes used to force an EtherType and to set the EtherType number. In order to keep things working, it checks the underlying NetDevice (using its name) and, if it's an LrWPAN, it register for all the protocols.

It would have been nicer to have a NetDevice::SupportEtherType, but we don't have it (so far).

Merge request reports