Re: [B.A.T.M.A.N.] [PATCH 01/20] batman-adv: Add packet structures for multicast optimizations

Andrew Lunn
2010-12-08T08:18:59Z

> +struct mcast_packet {
> + uint8_t packet_type; /* BAT_MCAST */
> + uint8_t version; /* batman version field */
> + uint8_t orig[6];
> + uint8_t ttl;
> + uint32_t seqno;
> +} __attribute__((packed));

It would be better to put seqno before ttl, so that it is 32bit aligned.

Andrew