aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/packet.h
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2011-06-02 06:29:51 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-11-07 14:00:20 -0500
commit5c3a0e5535933349a5d6e6bc8b704e0611f21d3f (patch)
treed94e306819e2dee3e3af5b413bb78e45d2b42e46 /net/batman-adv/packet.h
parent2f1dfbe185075a50dc8f0490a136377af53a1c62 (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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h
index 0f8dcf337df2..df548ed196d3 100644
--- a/net/batman-adv/packet.h
+++ b/net/batman-adv/packet.h
@@ -37,9 +37,15 @@ enum batadv_packettype {
37/** 37/**
38 * enum batadv_subtype - packet subtype for unicast4addr 38 * enum batadv_subtype - packet subtype for unicast4addr
39 * @BATADV_P_DATA: user payload 39 * @BATADV_P_DATA: user payload
40 * @BATADV_P_DAT_DHT_GET: DHT request message
41 * @BATADV_P_DAT_DHT_PUT: DHT store message
42 * @BATADV_P_DAT_CACHE_REPLY: ARP reply generated by DAT
40 */ 43 */
41enum batadv_subtype { 44enum batadv_subtype {
42 BATADV_P_DATA = 0x01, 45 BATADV_P_DATA = 0x01,
46 BATADV_P_DAT_DHT_GET = 0x02,
47 BATADV_P_DAT_DHT_PUT = 0x03,
48 BATADV_P_DAT_CACHE_REPLY = 0x04,
43}; 49};
44 50
45/* this file is included by batctl which needs these defines */ 51/* this file is included by batctl which needs these defines */