diff options
author | Antonio Quartulli <antonio@meshcoding.com> | 2013-12-15 07:26:55 -0500 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2013-12-28 06:51:18 -0500 |
commit | ca6630464454d74ae1d430e99007a1139f4a2aba (patch) | |
tree | 834ee00d9f3ee7d1fd62840c0da3982ca71f9017 /net/batman-adv/packet.h | |
parent | 2f7a318219186485c175339758ac42a03644200b (diff) |
batman-adv: fix alignment for batadv_tvlv_tt_change
Make struct batadv_tvlv_tt_change a multiple 4 bytes long
to avoid padding on any architecture.
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/packet.h')
-rw-r--r-- | net/batman-adv/packet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h index 04cf27ca5dee..2dd8f2422550 100644 --- a/net/batman-adv/packet.h +++ b/net/batman-adv/packet.h | |||
@@ -484,13 +484,13 @@ struct batadv_tvlv_tt_vlan_data { | |||
484 | * struct batadv_tvlv_tt_change - translation table diff data | 484 | * struct batadv_tvlv_tt_change - translation table diff data |
485 | * @flags: status indicators concerning the non-mesh client (see | 485 | * @flags: status indicators concerning the non-mesh client (see |
486 | * batadv_tt_client_flags) | 486 | * batadv_tt_client_flags) |
487 | * @reserved: reserved field | 487 | * @reserved: reserved field - useful for alignment purposes only |
488 | * @addr: mac address of non-mesh client that triggered this tt change | 488 | * @addr: mac address of non-mesh client that triggered this tt change |
489 | * @vid: VLAN identifier | 489 | * @vid: VLAN identifier |
490 | */ | 490 | */ |
491 | struct batadv_tvlv_tt_change { | 491 | struct batadv_tvlv_tt_change { |
492 | uint8_t flags; | 492 | uint8_t flags; |
493 | uint8_t reserved; | 493 | uint8_t reserved[3]; |
494 | uint8_t addr[ETH_ALEN]; | 494 | uint8_t addr[ETH_ALEN]; |
495 | __be16 vid; | 495 | __be16 vid; |
496 | }; | 496 | }; |