aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/packet.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-03 16:19:21 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 16:47:19 -0400
commitacd34afa89772f6379b642bb979d0a112328c769 (patch)
treedc72002fdefbd521253f651a53bbed762d3af899 /net/batman-adv/packet.h
parentd69909d2fc9e00bd8149cc8df9b18c35008e3e62 (diff)
batman-adv: Prefix packet enum with BATADV_
Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/packet.h')
-rw-r--r--net/batman-adv/packet.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h
index e562414c2940..59e328a22fb9 100644
--- a/net/batman-adv/packet.h
+++ b/net/batman-adv/packet.h
@@ -22,80 +22,80 @@
22 22
23#define BATADV_ETH_P_BATMAN 0x4305 /* unofficial/not registered Ethertype */ 23#define BATADV_ETH_P_BATMAN 0x4305 /* unofficial/not registered Ethertype */
24 24
25enum bat_packettype { 25enum batadv_packettype {
26 BAT_IV_OGM = 0x01, 26 BATADV_IV_OGM = 0x01,
27 BAT_ICMP = 0x02, 27 BATADV_ICMP = 0x02,
28 BAT_UNICAST = 0x03, 28 BATADV_UNICAST = 0x03,
29 BAT_BCAST = 0x04, 29 BATADV_BCAST = 0x04,
30 BAT_VIS = 0x05, 30 BATADV_VIS = 0x05,
31 BAT_UNICAST_FRAG = 0x06, 31 BATADV_UNICAST_FRAG = 0x06,
32 BAT_TT_QUERY = 0x07, 32 BATADV_TT_QUERY = 0x07,
33 BAT_ROAM_ADV = 0x08 33 BATADV_ROAM_ADV = 0x08,
34}; 34};
35 35
36/* this file is included by batctl which needs these defines */ 36/* this file is included by batctl which needs these defines */
37#define BATADV_COMPAT_VERSION 14 37#define BATADV_COMPAT_VERSION 14
38 38
39enum batman_iv_flags { 39enum batadv_iv_flags {
40 NOT_BEST_NEXT_HOP = 1 << 3, 40 BATADV_NOT_BEST_NEXT_HOP = 1 << 3,
41 PRIMARIES_FIRST_HOP = 1 << 4, 41 BATADV_PRIMARIES_FIRST_HOP = 1 << 4,
42 VIS_SERVER = 1 << 5, 42 BATADV_VIS_SERVER = 1 << 5,
43 DIRECTLINK = 1 << 6 43 BATADV_DIRECTLINK = 1 << 6,
44}; 44};
45 45
46/* ICMP message types */ 46/* ICMP message types */
47enum icmp_packettype { 47enum batadv_icmp_packettype {
48 ECHO_REPLY = 0, 48 BATADV_ECHO_REPLY = 0,
49 DESTINATION_UNREACHABLE = 3, 49 BATADV_DESTINATION_UNREACHABLE = 3,
50 ECHO_REQUEST = 8, 50 BATADV_ECHO_REQUEST = 8,
51 TTL_EXCEEDED = 11, 51 BATADV_TTL_EXCEEDED = 11,
52 PARAMETER_PROBLEM = 12 52 BATADV_PARAMETER_PROBLEM = 12,
53}; 53};
54 54
55/* vis defines */ 55/* vis defines */
56enum vis_packettype { 56enum batadv_vis_packettype {
57 VIS_TYPE_SERVER_SYNC = 0, 57 BATADV_VIS_TYPE_SERVER_SYNC = 0,
58 VIS_TYPE_CLIENT_UPDATE = 1 58 BATADV_VIS_TYPE_CLIENT_UPDATE = 1,
59}; 59};
60 60
61/* fragmentation defines */ 61/* fragmentation defines */
62enum unicast_frag_flags { 62enum batadv_unicast_frag_flags {
63 UNI_FRAG_HEAD = 1 << 0, 63 BATADV_UNI_FRAG_HEAD = 1 << 0,
64 UNI_FRAG_LARGETAIL = 1 << 1 64 BATADV_UNI_FRAG_LARGETAIL = 1 << 1,
65}; 65};
66 66
67/* TT_QUERY subtypes */ 67/* TT_QUERY subtypes */
68#define BATADV_TT_QUERY_TYPE_MASK 0x3 68#define BATADV_TT_QUERY_TYPE_MASK 0x3
69 69
70enum tt_query_packettype { 70enum batadv_tt_query_packettype {
71 TT_REQUEST = 0, 71 BATADV_TT_REQUEST = 0,
72 TT_RESPONSE = 1 72 BATADV_TT_RESPONSE = 1,
73}; 73};
74 74
75/* TT_QUERY flags */ 75/* TT_QUERY flags */
76enum tt_query_flags { 76enum batadv_tt_query_flags {
77 TT_FULL_TABLE = 1 << 2 77 BATADV_TT_FULL_TABLE = 1 << 2,
78}; 78};
79 79
80/* TT_CLIENT flags. 80/* BATADV_TT_CLIENT flags.
81 * Flags from 1 to 1 << 7 are sent on the wire, while flags from 1 << 8 to 81 * Flags from 1 to 1 << 7 are sent on the wire, while flags from 1 << 8 to
82 * 1 << 15 are used for local computation only 82 * 1 << 15 are used for local computation only
83 */ 83 */
84enum tt_client_flags { 84enum batadv_tt_client_flags {
85 TT_CLIENT_DEL = 1 << 0, 85 BATADV_TT_CLIENT_DEL = 1 << 0,
86 TT_CLIENT_ROAM = 1 << 1, 86 BATADV_TT_CLIENT_ROAM = 1 << 1,
87 TT_CLIENT_WIFI = 1 << 2, 87 BATADV_TT_CLIENT_WIFI = 1 << 2,
88 TT_CLIENT_NOPURGE = 1 << 8, 88 BATADV_TT_CLIENT_NOPURGE = 1 << 8,
89 TT_CLIENT_NEW = 1 << 9, 89 BATADV_TT_CLIENT_NEW = 1 << 9,
90 TT_CLIENT_PENDING = 1 << 10 90 BATADV_TT_CLIENT_PENDING = 1 << 10,
91}; 91};
92 92
93/* claim frame types for the bridge loop avoidance */ 93/* claim frame types for the bridge loop avoidance */
94enum bla_claimframe { 94enum batadv_bla_claimframe {
95 CLAIM_TYPE_ADD = 0x00, 95 BATADV_CLAIM_TYPE_ADD = 0x00,
96 CLAIM_TYPE_DEL = 0x01, 96 BATADV_CLAIM_TYPE_DEL = 0x01,
97 CLAIM_TYPE_ANNOUNCE = 0x02, 97 BATADV_CLAIM_TYPE_ANNOUNCE = 0x02,
98 CLAIM_TYPE_REQUEST = 0x03 98 BATADV_CLAIM_TYPE_REQUEST = 0x03,
99}; 99};
100 100
101/* the destination hardware field in the ARP frame is used to 101/* the destination hardware field in the ARP frame is used to