-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I have a usecase, where I'd like to obtain the raw Elements.
As the Nl80211Message is eagerly parsed and Nl80211Element is part of Nl80211BssInfo is part of Nl80211Attr is part of Nl80211Message, there is no easy way to obtain the elements unparsed.
I currently have two options to obtain the "unparsed" form of the elements.
- Use
emitagain, which converts the IEE80211 elements back to the serialized form. This is where Fix emit inconsitencies and add tests #30 is needed because of some incosistency issues for emit implementations. - Use a custom
Nl80211Messagevariant, which does only partially parse the payload (or doesn't at all), where theNl80211Message::attributesfield type is justVec<u8>so that nothing is parsed byGenetlinkHandle::request.
What do you think about adding a switch somewhere (maybe in the Nl80211AttrsBuilder or even the concrete Nl80211AttrsBuilder<Nl80211Scan>), which only parses the message partially (if this is even technically possible).
E.g. maybe adding a flag/option cto force all IEs to be parsed as Other(Vec<u8>)?
Otherwise I could imagine contributing a little more convenience around a RawNl80211Message . WDYT?
surban and Arne91
Metadata
Metadata
Assignees
Labels
No labels