You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a usecase, where I'd like to obtain the raw Information 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 information elements.
Use emit again, which converts the information 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 Nl80211Message variant, which does only partially parse the payload (or doesn't at all), where the Nl80211Message::attributes field type is just Vec<u8> so that nothing is parsed by GenetlinkHandle::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?
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
I have a usecase, where I'd like to obtain the raw Information Elements.
As the
Nl80211Message
is eagerly parsed andNl80211Element
is part ofNl80211BssInfo
is part ofNl80211Attr
is part ofNl80211Message
, there is no easy way to obtain the elements unparsed.I currently have two options to obtain the "unparsed" form of the information elements.
emit
again, which converts the information 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.Nl80211Message
variant, which does only partially parse the payload (or doesn't at all), where theNl80211Message::attributes
field 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 concreteNl80211AttrsBuilder<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?The text was updated successfully, but these errors were encountered: