diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-10-07 10:53:07 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2022-10-12 12:57:12 +0200 |
commit | ea562d8c486eebd2707bcd193974078a2a47affc (patch) | |
tree | 8bace5714b129bd37109809f96bdf9088d5a7460 /include/net/ieee802154_netdev.h | |
parent | ieee802154: hwsim: Record the address filter values (diff) | |
download | linux-ea562d8c486eebd2707bcd193974078a2a47affc.tar.xz linux-ea562d8c486eebd2707bcd193974078a2a47affc.zip |
ieee802154: hwsim: Implement address filtering
We have access to the address filters being theoretically applied, we
also have access to the actual filtering level applied, so let's add a
proper frame validation sequence in hwsim.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20221007085310.503366-6-miquel.raynal@bootlin.com
[stefan@datenfreihafen.org: fixup some checkpatch warnings]
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'include/net/ieee802154_netdev.h')
-rw-r--r-- | include/net/ieee802154_netdev.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h index d0d188c3294b..1b82bbafe8c7 100644 --- a/include/net/ieee802154_netdev.h +++ b/include/net/ieee802154_netdev.h @@ -69,6 +69,14 @@ struct ieee802154_hdr_fc { #endif }; +enum ieee802154_frame_version { + IEEE802154_2003_STD, + IEEE802154_2006_STD, + IEEE802154_STD, + IEEE802154_RESERVED_STD, + IEEE802154_MULTIPURPOSE_STD = IEEE802154_2003_STD, +}; + struct ieee802154_hdr { struct ieee802154_hdr_fc fc; u8 seq; |