Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340695
b: refs/heads/master
c: f6c57a4
h: refs/heads/master
i:
  340693: df8b3fb
  340691: 599931a
  340687: 31b4876
v: v3
  • Loading branch information
Sven Eckelmann authored and Antonio Quartulli committed Nov 7, 2012
1 parent 292547b commit 1e3d81c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b246574430f808e5b98ef40b8058bf5ac1df02d
refs/heads/master: f6c57a460913f3c83b0e8eb51f4021fcf1c83cdc
21 changes: 15 additions & 6 deletions trunk/net/batman-adv/packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,16 @@ struct batadv_bla_claim_dst {
uint8_t magic[3]; /* FF:43:05 */
uint8_t type; /* bla_claimframe */
__be16 group; /* group id */
} __packed;
};

struct batadv_header {
uint8_t packet_type;
uint8_t version; /* batman version field */
uint8_t ttl;
} __packed;
/* the parent struct has to add a byte after the header to make
* everything 4 bytes aligned again
*/
};

struct batadv_ogm_packet {
struct batadv_header header;
Expand All @@ -137,7 +140,7 @@ struct batadv_icmp_packet {
__be16 seqno;
uint8_t uid;
uint8_t reserved;
} __packed;
};

#define BATADV_RR_LEN 16

Expand All @@ -153,13 +156,16 @@ struct batadv_icmp_packet_rr {
uint8_t uid;
uint8_t rr_cur;
uint8_t rr[BATADV_RR_LEN][ETH_ALEN];
} __packed;
};

struct batadv_unicast_packet {
struct batadv_header header;
uint8_t ttvn; /* destination translation table version number */
uint8_t dest[ETH_ALEN];
} __packed;
/* "4 bytes boundary + 2 bytes" long to make the payload after the
* following ethernet header again 4 bytes boundary aligned
*/
};

struct batadv_unicast_frag_packet {
struct batadv_header header;
Expand All @@ -176,6 +182,9 @@ struct batadv_bcast_packet {
uint8_t reserved;
__be32 seqno;
uint8_t orig[ETH_ALEN];
/* "4 bytes boundary + 2 bytes" long to make the payload after the
* following ethernet header again 4 bytes boundary aligned
*/
} __packed;

struct batadv_vis_packet {
Expand All @@ -187,7 +196,7 @@ struct batadv_vis_packet {
uint8_t vis_orig[ETH_ALEN]; /* originator reporting its neighbors */
uint8_t target_orig[ETH_ALEN]; /* who should receive this packet */
uint8_t sender_orig[ETH_ALEN]; /* who sent or forwarded this packet */
} __packed;
};

struct batadv_tt_query_packet {
struct batadv_header header;
Expand Down

0 comments on commit 1e3d81c

Please sign in to comment.