aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/packet.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-05 16:31:30 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 16:47:21 -0400
commit96412690116afcc1b2705615b5a7c8dc6c5e905f (patch)
tree0eb2a1a557e2997175b27f3ab925bbdc29ece54d /net/batman-adv/packet.h
parentb4d66b877bc21ce907938bfd027dfe016617fac0 (diff)
batman-adv: Prefix packet structs 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.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h
index 59e328a22fb9..8d3e55a96adc 100644
--- a/net/batman-adv/packet.h
+++ b/net/batman-adv/packet.h
@@ -101,20 +101,20 @@ enum batadv_bla_claimframe {
101/* the destination hardware field in the ARP frame is used to 101/* the destination hardware field in the ARP frame is used to
102 * transport the claim type and the group id 102 * transport the claim type and the group id
103 */ 103 */
104struct bla_claim_dst { 104struct batadv_bla_claim_dst {
105 uint8_t magic[3]; /* FF:43:05 */ 105 uint8_t magic[3]; /* FF:43:05 */
106 uint8_t type; /* bla_claimframe */ 106 uint8_t type; /* bla_claimframe */
107 __be16 group; /* group id */ 107 __be16 group; /* group id */
108} __packed; 108} __packed;
109 109
110struct batman_header { 110struct batadv_header {
111 uint8_t packet_type; 111 uint8_t packet_type;
112 uint8_t version; /* batman version field */ 112 uint8_t version; /* batman version field */
113 uint8_t ttl; 113 uint8_t ttl;
114} __packed; 114} __packed;
115 115
116struct batman_ogm_packet { 116struct batadv_ogm_packet {
117 struct batman_header header; 117 struct batadv_header header;
118 uint8_t flags; /* 0x40: DIRECTLINK flag, 0x20 VIS_SERVER flag... */ 118 uint8_t flags; /* 0x40: DIRECTLINK flag, 0x20 VIS_SERVER flag... */
119 __be32 seqno; 119 __be32 seqno;
120 uint8_t orig[ETH_ALEN]; 120 uint8_t orig[ETH_ALEN];
@@ -126,10 +126,10 @@ struct batman_ogm_packet {
126 __be16 tt_crc; 126 __be16 tt_crc;
127} __packed; 127} __packed;
128 128
129#define BATADV_OGM_HLEN sizeof(struct batman_ogm_packet) 129#define BATADV_OGM_HLEN sizeof(struct batadv_ogm_packet)
130 130
131struct icmp_packet { 131struct batadv_icmp_packet {
132 struct batman_header header; 132 struct batadv_header header;
133 uint8_t msg_type; /* see ICMP message types above */ 133 uint8_t msg_type; /* see ICMP message types above */
134 uint8_t dst[ETH_ALEN]; 134 uint8_t dst[ETH_ALEN];
135 uint8_t orig[ETH_ALEN]; 135 uint8_t orig[ETH_ALEN];
@@ -143,8 +143,8 @@ struct icmp_packet {
143/* icmp_packet_rr must start with all fields from imcp_packet 143/* icmp_packet_rr must start with all fields from imcp_packet
144 * as this is assumed by code that handles ICMP packets 144 * as this is assumed by code that handles ICMP packets
145 */ 145 */
146struct icmp_packet_rr { 146struct batadv_icmp_packet_rr {
147 struct batman_header header; 147 struct batadv_header header;
148 uint8_t msg_type; /* see ICMP message types above */ 148 uint8_t msg_type; /* see ICMP message types above */
149 uint8_t dst[ETH_ALEN]; 149 uint8_t dst[ETH_ALEN];
150 uint8_t orig[ETH_ALEN]; 150 uint8_t orig[ETH_ALEN];
@@ -154,14 +154,14 @@ struct icmp_packet_rr {
154 uint8_t rr[BATADV_RR_LEN][ETH_ALEN]; 154 uint8_t rr[BATADV_RR_LEN][ETH_ALEN];
155} __packed; 155} __packed;
156 156
157struct unicast_packet { 157struct batadv_unicast_packet {
158 struct batman_header header; 158 struct batadv_header header;
159 uint8_t ttvn; /* destination translation table version number */ 159 uint8_t ttvn; /* destination translation table version number */
160 uint8_t dest[ETH_ALEN]; 160 uint8_t dest[ETH_ALEN];
161} __packed; 161} __packed;
162 162
163struct unicast_frag_packet { 163struct batadv_unicast_frag_packet {
164 struct batman_header header; 164 struct batadv_header header;
165 uint8_t ttvn; /* destination translation table version number */ 165 uint8_t ttvn; /* destination translation table version number */
166 uint8_t dest[ETH_ALEN]; 166 uint8_t dest[ETH_ALEN];
167 uint8_t flags; 167 uint8_t flags;
@@ -170,15 +170,15 @@ struct unicast_frag_packet {
170 __be16 seqno; 170 __be16 seqno;
171} __packed; 171} __packed;
172 172
173struct bcast_packet { 173struct batadv_bcast_packet {
174 struct batman_header header; 174 struct batadv_header header;
175 uint8_t reserved; 175 uint8_t reserved;
176 __be32 seqno; 176 __be32 seqno;
177 uint8_t orig[ETH_ALEN]; 177 uint8_t orig[ETH_ALEN];
178} __packed; 178} __packed;
179 179
180struct vis_packet { 180struct batadv_vis_packet {
181 struct batman_header header; 181 struct batadv_header header;
182 uint8_t vis_type; /* which type of vis-participant sent this? */ 182 uint8_t vis_type; /* which type of vis-participant sent this? */
183 __be32 seqno; /* sequence number */ 183 __be32 seqno; /* sequence number */
184 uint8_t entries; /* number of entries behind this struct */ 184 uint8_t entries; /* number of entries behind this struct */
@@ -188,8 +188,8 @@ struct vis_packet {
188 uint8_t sender_orig[ETH_ALEN]; /* who sent or forwarded this packet */ 188 uint8_t sender_orig[ETH_ALEN]; /* who sent or forwarded this packet */
189} __packed; 189} __packed;
190 190
191struct tt_query_packet { 191struct batadv_tt_query_packet {
192 struct batman_header header; 192 struct batadv_header header;
193 /* the flag field is a combination of: 193 /* the flag field is a combination of:
194 * - TT_REQUEST or TT_RESPONSE 194 * - TT_REQUEST or TT_RESPONSE
195 * - TT_FULL_TABLE 195 * - TT_FULL_TABLE
@@ -212,15 +212,15 @@ struct tt_query_packet {
212 __be16 tt_data; 212 __be16 tt_data;
213} __packed; 213} __packed;
214 214
215struct roam_adv_packet { 215struct batadv_roam_adv_packet {
216 struct batman_header header; 216 struct batadv_header header;
217 uint8_t reserved; 217 uint8_t reserved;
218 uint8_t dst[ETH_ALEN]; 218 uint8_t dst[ETH_ALEN];
219 uint8_t src[ETH_ALEN]; 219 uint8_t src[ETH_ALEN];
220 uint8_t client[ETH_ALEN]; 220 uint8_t client[ETH_ALEN];
221} __packed; 221} __packed;
222 222
223struct tt_change { 223struct batadv_tt_change {
224 uint8_t flags; 224 uint8_t flags;
225 uint8_t addr[ETH_ALEN]; 225 uint8_t addr[ETH_ALEN];
226} __packed; 226} __packed;