diff options
author | Antonio Quartulli <ordex@autistici.org> | 2011-06-02 12:29:51 +0200 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-11-07 20:00:20 +0100 |
commit | 5c3a0e5535933349a5d6e6bc8b704e0611f21d3f (patch) | |
tree | d94e306819e2dee3e3af5b413bb78e45d2b42e46 /net/batman-adv/packet.h | |
parent | 2f1dfbe185075a50dc8f0490a136377af53a1c62 (diff) |
batman-adv: Distributed ARP Table - add ARP parsing functions
ARP messages are now parsed to make it possible to trigger special actions
depending on their types (snooping).
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/packet.h')
-rw-r--r-- | net/batman-adv/packet.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h index 0f8dcf337df..df548ed196d 100644 --- a/net/batman-adv/packet.h +++ b/net/batman-adv/packet.h @@ -37,9 +37,15 @@ enum batadv_packettype { /** * enum batadv_subtype - packet subtype for unicast4addr * @BATADV_P_DATA: user payload + * @BATADV_P_DAT_DHT_GET: DHT request message + * @BATADV_P_DAT_DHT_PUT: DHT store message + * @BATADV_P_DAT_CACHE_REPLY: ARP reply generated by DAT */ enum batadv_subtype { - BATADV_P_DATA = 0x01, + BATADV_P_DATA = 0x01, + BATADV_P_DAT_DHT_GET = 0x02, + BATADV_P_DAT_DHT_PUT = 0x03, + BATADV_P_DAT_CACHE_REPLY = 0x04, }; /* this file is included by batctl which needs these defines */ |