packet.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  1. /* Copyright (C) 2007-2014 B.A.T.M.A.N. contributors:
  2. *
  3. * Marek Lindner, Simon Wunderlich
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of version 2 of the GNU General Public
  7. * License as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef _NET_BATMAN_ADV_PACKET_H_
  18. #define _NET_BATMAN_ADV_PACKET_H_
  19. /**
  20. * enum batadv_packettype - types for batman-adv encapsulated packets
  21. * @BATADV_IV_OGM: originator messages for B.A.T.M.A.N. IV
  22. * @BATADV_BCAST: broadcast packets carrying broadcast payload
  23. * @BATADV_CODED: network coded packets
  24. *
  25. * @BATADV_UNICAST: unicast packets carrying unicast payload traffic
  26. * @BATADV_UNICAST_FRAG: unicast packets carrying a fragment of the original
  27. * payload packet
  28. * @BATADV_UNICAST_4ADDR: unicast packet including the originator address of
  29. * the sender
  30. * @BATADV_ICMP: unicast packet like IP ICMP used for ping or traceroute
  31. * @BATADV_UNICAST_TVLV: unicast packet carrying TVLV containers
  32. */
  33. enum batadv_packettype {
  34. /* 0x00 - 0x3f: local packets or special rules for handling */
  35. BATADV_IV_OGM = 0x00,
  36. BATADV_BCAST = 0x01,
  37. BATADV_CODED = 0x02,
  38. /* 0x40 - 0x7f: unicast */
  39. #define BATADV_UNICAST_MIN 0x40
  40. BATADV_UNICAST = 0x40,
  41. BATADV_UNICAST_FRAG = 0x41,
  42. BATADV_UNICAST_4ADDR = 0x42,
  43. BATADV_ICMP = 0x43,
  44. BATADV_UNICAST_TVLV = 0x44,
  45. #define BATADV_UNICAST_MAX 0x7f
  46. /* 0x80 - 0xff: reserved */
  47. };
  48. /**
  49. * enum batadv_subtype - packet subtype for unicast4addr
  50. * @BATADV_P_DATA: user payload
  51. * @BATADV_P_DAT_DHT_GET: DHT request message
  52. * @BATADV_P_DAT_DHT_PUT: DHT store message
  53. * @BATADV_P_DAT_CACHE_REPLY: ARP reply generated by DAT
  54. */
  55. enum batadv_subtype {
  56. BATADV_P_DATA = 0x01,
  57. BATADV_P_DAT_DHT_GET = 0x02,
  58. BATADV_P_DAT_DHT_PUT = 0x03,
  59. BATADV_P_DAT_CACHE_REPLY = 0x04,
  60. };
  61. /* this file is included by batctl which needs these defines */
  62. #define BATADV_COMPAT_VERSION 15
  63. /**
  64. * enum batadv_iv_flags - flags used in B.A.T.M.A.N. IV OGM packets
  65. * @BATADV_NOT_BEST_NEXT_HOP: flag is set when ogm packet is forwarded and was
  66. * previously received from someone else than the best neighbor.
  67. * @BATADV_PRIMARIES_FIRST_HOP: flag is set when the primary interface address
  68. * is used, and the packet travels its first hop.
  69. * @BATADV_DIRECTLINK: flag is for the first hop or if rebroadcasted from a
  70. * one hop neighbor on the interface where it was originally received.
  71. */
  72. enum batadv_iv_flags {
  73. BATADV_NOT_BEST_NEXT_HOP = BIT(0),
  74. BATADV_PRIMARIES_FIRST_HOP = BIT(1),
  75. BATADV_DIRECTLINK = BIT(2),
  76. };
  77. /* ICMP message types */
  78. enum batadv_icmp_packettype {
  79. BATADV_ECHO_REPLY = 0,
  80. BATADV_DESTINATION_UNREACHABLE = 3,
  81. BATADV_ECHO_REQUEST = 8,
  82. BATADV_TTL_EXCEEDED = 11,
  83. BATADV_PARAMETER_PROBLEM = 12,
  84. };
  85. /**
  86. * enum batadv_mcast_flags - flags for multicast capabilities and settings
  87. * @BATADV_MCAST_WANT_ALL_UNSNOOPABLES: we want all packets destined for
  88. * 224.0.0.0/24 or ff02::1
  89. * @BATADV_MCAST_WANT_ALL_IPV4: we want all IPv4 multicast packets
  90. * @BATADV_MCAST_WANT_ALL_IPV6: we want all IPv6 multicast packets
  91. */
  92. enum batadv_mcast_flags {
  93. BATADV_MCAST_WANT_ALL_UNSNOOPABLES = BIT(0),
  94. BATADV_MCAST_WANT_ALL_IPV4 = BIT(1),
  95. BATADV_MCAST_WANT_ALL_IPV6 = BIT(2),
  96. };
  97. /* tt data subtypes */
  98. #define BATADV_TT_DATA_TYPE_MASK 0x0F
  99. /**
  100. * enum batadv_tt_data_flags - flags for tt data tvlv
  101. * @BATADV_TT_OGM_DIFF: TT diff propagated through OGM
  102. * @BATADV_TT_REQUEST: TT request message
  103. * @BATADV_TT_RESPONSE: TT response message
  104. * @BATADV_TT_FULL_TABLE: contains full table to replace existing table
  105. */
  106. enum batadv_tt_data_flags {
  107. BATADV_TT_OGM_DIFF = BIT(0),
  108. BATADV_TT_REQUEST = BIT(1),
  109. BATADV_TT_RESPONSE = BIT(2),
  110. BATADV_TT_FULL_TABLE = BIT(4),
  111. };
  112. /**
  113. * enum batadv_tt_client_flags - TT client specific flags
  114. * @BATADV_TT_CLIENT_DEL: the client has to be deleted from the table
  115. * @BATADV_TT_CLIENT_ROAM: the client roamed to/from another node and the new
  116. * update telling its new real location has not been received/sent yet
  117. * @BATADV_TT_CLIENT_WIFI: this client is connected through a wifi interface.
  118. * This information is used by the "AP Isolation" feature
  119. * @BATADV_TT_CLIENT_ISOLA: this client is considered "isolated". This
  120. * information is used by the Extended Isolation feature
  121. * @BATADV_TT_CLIENT_NOPURGE: this client should never be removed from the table
  122. * @BATADV_TT_CLIENT_NEW: this client has been added to the local table but has
  123. * not been announced yet
  124. * @BATADV_TT_CLIENT_PENDING: this client is marked for removal but it is kept
  125. * in the table for one more originator interval for consistency purposes
  126. * @BATADV_TT_CLIENT_TEMP: this global client has been detected to be part of
  127. * the network but no nnode has already announced it
  128. *
  129. * Bits from 0 to 7 are called _remote flags_ because they are sent on the wire.
  130. * Bits from 8 to 15 are called _local flags_ because they are used for local
  131. * computations only.
  132. *
  133. * Bits from 4 to 7 - a subset of remote flags - are ensured to be in sync with
  134. * the other nodes in the network. To achieve this goal these flags are included
  135. * in the TT CRC computation.
  136. */
  137. enum batadv_tt_client_flags {
  138. BATADV_TT_CLIENT_DEL = BIT(0),
  139. BATADV_TT_CLIENT_ROAM = BIT(1),
  140. BATADV_TT_CLIENT_WIFI = BIT(4),
  141. BATADV_TT_CLIENT_ISOLA = BIT(5),
  142. BATADV_TT_CLIENT_NOPURGE = BIT(8),
  143. BATADV_TT_CLIENT_NEW = BIT(9),
  144. BATADV_TT_CLIENT_PENDING = BIT(10),
  145. BATADV_TT_CLIENT_TEMP = BIT(11),
  146. };
  147. /**
  148. * batadv_vlan_flags - flags for the four MSB of any vlan ID field
  149. * @BATADV_VLAN_HAS_TAG: whether the field contains a valid vlan tag or not
  150. */
  151. enum batadv_vlan_flags {
  152. BATADV_VLAN_HAS_TAG = BIT(15),
  153. };
  154. /* claim frame types for the bridge loop avoidance */
  155. enum batadv_bla_claimframe {
  156. BATADV_CLAIM_TYPE_CLAIM = 0x00,
  157. BATADV_CLAIM_TYPE_UNCLAIM = 0x01,
  158. BATADV_CLAIM_TYPE_ANNOUNCE = 0x02,
  159. BATADV_CLAIM_TYPE_REQUEST = 0x03,
  160. };
  161. /**
  162. * enum batadv_tvlv_type - tvlv type definitions
  163. * @BATADV_TVLV_GW: gateway tvlv
  164. * @BATADV_TVLV_DAT: distributed arp table tvlv
  165. * @BATADV_TVLV_NC: network coding tvlv
  166. * @BATADV_TVLV_TT: translation table tvlv
  167. * @BATADV_TVLV_ROAM: roaming advertisement tvlv
  168. * @BATADV_TVLV_MCAST: multicast capability tvlv
  169. */
  170. enum batadv_tvlv_type {
  171. BATADV_TVLV_GW = 0x01,
  172. BATADV_TVLV_DAT = 0x02,
  173. BATADV_TVLV_NC = 0x03,
  174. BATADV_TVLV_TT = 0x04,
  175. BATADV_TVLV_ROAM = 0x05,
  176. BATADV_TVLV_MCAST = 0x06,
  177. };
  178. #pragma pack(2)
  179. /* the destination hardware field in the ARP frame is used to
  180. * transport the claim type and the group id
  181. */
  182. struct batadv_bla_claim_dst {
  183. uint8_t magic[3]; /* FF:43:05 */
  184. uint8_t type; /* bla_claimframe */
  185. __be16 group; /* group id */
  186. };
  187. #pragma pack()
  188. /**
  189. * struct batadv_ogm_packet - ogm (routing protocol) packet
  190. * @packet_type: batman-adv packet type, part of the general header
  191. * @version: batman-adv protocol version, part of the genereal header
  192. * @ttl: time to live for this packet, part of the genereal header
  193. * @flags: contains routing relevant flags - see enum batadv_iv_flags
  194. * @tvlv_len: length of tvlv data following the ogm header
  195. */
  196. struct batadv_ogm_packet {
  197. uint8_t packet_type;
  198. uint8_t version;
  199. uint8_t ttl;
  200. uint8_t flags;
  201. __be32 seqno;
  202. uint8_t orig[ETH_ALEN];
  203. uint8_t prev_sender[ETH_ALEN];
  204. uint8_t reserved;
  205. uint8_t tq;
  206. __be16 tvlv_len;
  207. /* __packed is not needed as the struct size is divisible by 4,
  208. * and the largest data type in this struct has a size of 4.
  209. */
  210. };
  211. #define BATADV_OGM_HLEN sizeof(struct batadv_ogm_packet)
  212. /**
  213. * batadv_icmp_header - common members among all the ICMP packets
  214. * @packet_type: batman-adv packet type, part of the general header
  215. * @version: batman-adv protocol version, part of the genereal header
  216. * @ttl: time to live for this packet, part of the genereal header
  217. * @msg_type: ICMP packet type
  218. * @dst: address of the destination node
  219. * @orig: address of the source node
  220. * @uid: local ICMP socket identifier
  221. * @align: not used - useful for alignment purposes only
  222. *
  223. * This structure is used for ICMP packets parsing only and it is never sent
  224. * over the wire. The alignment field at the end is there to ensure that
  225. * members are padded the same way as they are in real packets.
  226. */
  227. struct batadv_icmp_header {
  228. uint8_t packet_type;
  229. uint8_t version;
  230. uint8_t ttl;
  231. uint8_t msg_type; /* see ICMP message types above */
  232. uint8_t dst[ETH_ALEN];
  233. uint8_t orig[ETH_ALEN];
  234. uint8_t uid;
  235. uint8_t align[3];
  236. };
  237. /**
  238. * batadv_icmp_packet - ICMP packet
  239. * @packet_type: batman-adv packet type, part of the general header
  240. * @version: batman-adv protocol version, part of the genereal header
  241. * @ttl: time to live for this packet, part of the genereal header
  242. * @msg_type: ICMP packet type
  243. * @dst: address of the destination node
  244. * @orig: address of the source node
  245. * @uid: local ICMP socket identifier
  246. * @reserved: not used - useful for alignment
  247. * @seqno: ICMP sequence number
  248. */
  249. struct batadv_icmp_packet {
  250. uint8_t packet_type;
  251. uint8_t version;
  252. uint8_t ttl;
  253. uint8_t msg_type; /* see ICMP message types above */
  254. uint8_t dst[ETH_ALEN];
  255. uint8_t orig[ETH_ALEN];
  256. uint8_t uid;
  257. uint8_t reserved;
  258. __be16 seqno;
  259. };
  260. #define BATADV_RR_LEN 16
  261. /**
  262. * batadv_icmp_packet_rr - ICMP RouteRecord packet
  263. * @packet_type: batman-adv packet type, part of the general header
  264. * @version: batman-adv protocol version, part of the genereal header
  265. * @ttl: time to live for this packet, part of the genereal header
  266. * @msg_type: ICMP packet type
  267. * @dst: address of the destination node
  268. * @orig: address of the source node
  269. * @uid: local ICMP socket identifier
  270. * @rr_cur: number of entries the rr array
  271. * @seqno: ICMP sequence number
  272. * @rr: route record array
  273. */
  274. struct batadv_icmp_packet_rr {
  275. uint8_t packet_type;
  276. uint8_t version;
  277. uint8_t ttl;
  278. uint8_t msg_type; /* see ICMP message types above */
  279. uint8_t dst[ETH_ALEN];
  280. uint8_t orig[ETH_ALEN];
  281. uint8_t uid;
  282. uint8_t rr_cur;
  283. __be16 seqno;
  284. uint8_t rr[BATADV_RR_LEN][ETH_ALEN];
  285. };
  286. #define BATADV_ICMP_MAX_PACKET_SIZE sizeof(struct batadv_icmp_packet_rr)
  287. /* All packet headers in front of an ethernet header have to be completely
  288. * divisible by 2 but not by 4 to make the payload after the ethernet
  289. * header again 4 bytes boundary aligned.
  290. *
  291. * A packing of 2 is necessary to avoid extra padding at the end of the struct
  292. * caused by a structure member which is larger than two bytes. Otherwise
  293. * the structure would not fulfill the previously mentioned rule to avoid the
  294. * misalignment of the payload after the ethernet header. It may also lead to
  295. * leakage of information when the padding it not initialized before sending.
  296. */
  297. #pragma pack(2)
  298. /**
  299. * struct batadv_unicast_packet - unicast packet for network payload
  300. * @packet_type: batman-adv packet type, part of the general header
  301. * @version: batman-adv protocol version, part of the genereal header
  302. * @ttl: time to live for this packet, part of the genereal header
  303. * @ttvn: translation table version number
  304. * @dest: originator destination of the unicast packet
  305. */
  306. struct batadv_unicast_packet {
  307. uint8_t packet_type;
  308. uint8_t version;
  309. uint8_t ttl;
  310. uint8_t ttvn; /* destination translation table version number */
  311. uint8_t dest[ETH_ALEN];
  312. /* "4 bytes boundary + 2 bytes" long to make the payload after the
  313. * following ethernet header again 4 bytes boundary aligned
  314. */
  315. };
  316. /**
  317. * struct batadv_unicast_4addr_packet - extended unicast packet
  318. * @u: common unicast packet header
  319. * @src: address of the source
  320. * @subtype: packet subtype
  321. */
  322. struct batadv_unicast_4addr_packet {
  323. struct batadv_unicast_packet u;
  324. uint8_t src[ETH_ALEN];
  325. uint8_t subtype;
  326. uint8_t reserved;
  327. /* "4 bytes boundary + 2 bytes" long to make the payload after the
  328. * following ethernet header again 4 bytes boundary aligned
  329. */
  330. };
  331. /**
  332. * struct batadv_frag_packet - fragmented packet
  333. * @packet_type: batman-adv packet type, part of the general header
  334. * @version: batman-adv protocol version, part of the genereal header
  335. * @ttl: time to live for this packet, part of the genereal header
  336. * @dest: final destination used when routing fragments
  337. * @orig: originator of the fragment used when merging the packet
  338. * @no: fragment number within this sequence
  339. * @reserved: reserved byte for alignment
  340. * @seqno: sequence identification
  341. * @total_size: size of the merged packet
  342. */
  343. struct batadv_frag_packet {
  344. uint8_t packet_type;
  345. uint8_t version; /* batman version field */
  346. uint8_t ttl;
  347. #if defined(__BIG_ENDIAN_BITFIELD)
  348. uint8_t no:4;
  349. uint8_t reserved:4;
  350. #elif defined(__LITTLE_ENDIAN_BITFIELD)
  351. uint8_t reserved:4;
  352. uint8_t no:4;
  353. #else
  354. #error "unknown bitfield endianess"
  355. #endif
  356. uint8_t dest[ETH_ALEN];
  357. uint8_t orig[ETH_ALEN];
  358. __be16 seqno;
  359. __be16 total_size;
  360. };
  361. /**
  362. * struct batadv_bcast_packet - broadcast packet for network payload
  363. * @packet_type: batman-adv packet type, part of the general header
  364. * @version: batman-adv protocol version, part of the genereal header
  365. * @ttl: time to live for this packet, part of the genereal header
  366. * @reserved: reserved byte for alignment
  367. * @seqno: sequence identification
  368. * @orig: originator of the broadcast packet
  369. */
  370. struct batadv_bcast_packet {
  371. uint8_t packet_type;
  372. uint8_t version; /* batman version field */
  373. uint8_t ttl;
  374. uint8_t reserved;
  375. __be32 seqno;
  376. uint8_t orig[ETH_ALEN];
  377. /* "4 bytes boundary + 2 bytes" long to make the payload after the
  378. * following ethernet header again 4 bytes boundary aligned
  379. */
  380. };
  381. /**
  382. * struct batadv_coded_packet - network coded packet
  383. * @packet_type: batman-adv packet type, part of the general header
  384. * @version: batman-adv protocol version, part of the genereal header
  385. * @ttl: time to live for this packet, part of the genereal header
  386. * @reserved: Align following fields to 2-byte boundaries
  387. * @first_source: original source of first included packet
  388. * @first_orig_dest: original destinal of first included packet
  389. * @first_crc: checksum of first included packet
  390. * @first_ttvn: tt-version number of first included packet
  391. * @second_ttl: ttl of second packet
  392. * @second_dest: second receiver of this coded packet
  393. * @second_source: original source of second included packet
  394. * @second_orig_dest: original destination of second included packet
  395. * @second_crc: checksum of second included packet
  396. * @second_ttvn: tt version number of second included packet
  397. * @coded_len: length of network coded part of the payload
  398. */
  399. struct batadv_coded_packet {
  400. uint8_t packet_type;
  401. uint8_t version; /* batman version field */
  402. uint8_t ttl;
  403. uint8_t first_ttvn;
  404. /* uint8_t first_dest[ETH_ALEN]; - saved in mac header destination */
  405. uint8_t first_source[ETH_ALEN];
  406. uint8_t first_orig_dest[ETH_ALEN];
  407. __be32 first_crc;
  408. uint8_t second_ttl;
  409. uint8_t second_ttvn;
  410. uint8_t second_dest[ETH_ALEN];
  411. uint8_t second_source[ETH_ALEN];
  412. uint8_t second_orig_dest[ETH_ALEN];
  413. __be32 second_crc;
  414. __be16 coded_len;
  415. };
  416. #pragma pack()
  417. /**
  418. * struct batadv_unicast_tvlv - generic unicast packet with tvlv payload
  419. * @packet_type: batman-adv packet type, part of the general header
  420. * @version: batman-adv protocol version, part of the genereal header
  421. * @ttl: time to live for this packet, part of the genereal header
  422. * @reserved: reserved field (for packet alignment)
  423. * @src: address of the source
  424. * @dst: address of the destination
  425. * @tvlv_len: length of tvlv data following the unicast tvlv header
  426. * @align: 2 bytes to align the header to a 4 byte boundry
  427. */
  428. struct batadv_unicast_tvlv_packet {
  429. uint8_t packet_type;
  430. uint8_t version; /* batman version field */
  431. uint8_t ttl;
  432. uint8_t reserved;
  433. uint8_t dst[ETH_ALEN];
  434. uint8_t src[ETH_ALEN];
  435. __be16 tvlv_len;
  436. uint16_t align;
  437. };
  438. /**
  439. * struct batadv_tvlv_hdr - base tvlv header struct
  440. * @type: tvlv container type (see batadv_tvlv_type)
  441. * @version: tvlv container version
  442. * @len: tvlv container length
  443. */
  444. struct batadv_tvlv_hdr {
  445. uint8_t type;
  446. uint8_t version;
  447. __be16 len;
  448. };
  449. /**
  450. * struct batadv_tvlv_gateway_data - gateway data propagated through gw tvlv
  451. * container
  452. * @bandwidth_down: advertised uplink download bandwidth
  453. * @bandwidth_up: advertised uplink upload bandwidth
  454. */
  455. struct batadv_tvlv_gateway_data {
  456. __be32 bandwidth_down;
  457. __be32 bandwidth_up;
  458. };
  459. /**
  460. * struct batadv_tvlv_tt_data - tt data propagated through the tt tvlv container
  461. * @flags: translation table flags (see batadv_tt_data_flags)
  462. * @ttvn: translation table version number
  463. * @vlan_num: number of announced VLANs. In the TVLV this struct is followed by
  464. * one batadv_tvlv_tt_vlan_data object per announced vlan
  465. */
  466. struct batadv_tvlv_tt_data {
  467. uint8_t flags;
  468. uint8_t ttvn;
  469. __be16 num_vlan;
  470. };
  471. /**
  472. * struct batadv_tvlv_tt_vlan_data - vlan specific tt data propagated through
  473. * the tt tvlv container
  474. * @crc: crc32 checksum of the entries belonging to this vlan
  475. * @vid: vlan identifier
  476. * @reserved: unused, useful for alignment purposes
  477. */
  478. struct batadv_tvlv_tt_vlan_data {
  479. __be32 crc;
  480. __be16 vid;
  481. uint16_t reserved;
  482. };
  483. /**
  484. * struct batadv_tvlv_tt_change - translation table diff data
  485. * @flags: status indicators concerning the non-mesh client (see
  486. * batadv_tt_client_flags)
  487. * @reserved: reserved field - useful for alignment purposes only
  488. * @addr: mac address of non-mesh client that triggered this tt change
  489. * @vid: VLAN identifier
  490. */
  491. struct batadv_tvlv_tt_change {
  492. uint8_t flags;
  493. uint8_t reserved[3];
  494. uint8_t addr[ETH_ALEN];
  495. __be16 vid;
  496. };
  497. /**
  498. * struct batadv_tvlv_roam_adv - roaming advertisement
  499. * @client: mac address of roaming client
  500. * @vid: VLAN identifier
  501. */
  502. struct batadv_tvlv_roam_adv {
  503. uint8_t client[ETH_ALEN];
  504. __be16 vid;
  505. };
  506. /**
  507. * struct batadv_tvlv_mcast_data - payload of a multicast tvlv
  508. * @flags: multicast flags announced by the orig node
  509. * @reserved: reserved field
  510. */
  511. struct batadv_tvlv_mcast_data {
  512. uint8_t flags;
  513. uint8_t reserved[3];
  514. };
  515. #endif /* _NET_BATMAN_ADV_PACKET_H_ */