The following commit has been merged in the master branch: commit 3e4acf0985eb97a8248726613f629cacbfe6d8d5 Author: Antonio Quartulli ordex@autistici.org Date: Wed Apr 27 14:27:57 2011 +0200
batctl: improved roaming mechanism
Exploting the new announcement implementation, it has been possible to improve the roaming mechanism and reduce the number of packet drops.
For details, please visit: http://www.open-mesh.org/wiki/batman-adv/Roaming-improvements
Signed-off-by: Antonio Quartulli ordex@autistici.org Acked-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de Signed-off-by: Sven Eckelmann sven@narfation.org
diff --git a/packet.h b/packet.h index 49500a9..ae212c7 100644 --- a/packet.h +++ b/packet.h @@ -31,6 +31,7 @@ #define BAT_VIS 0x05 #define BAT_UNICAST_FRAG 0x06 #define BAT_TT_QUERY 0x07 +#define BAT_ROAM_ADV 0x08
/* this file is included by batctl which needs these defines */ #define COMPAT_VERSION 14 @@ -169,4 +170,14 @@ struct tt_query_packet { uint16_t tt_data; } __packed;
+struct roam_adv_packet { + uint8_t packet_type; + uint8_t version; + uint8_t ttl; + uint8_t reserved; + uint8_t dst[ETH_ALEN]; + uint8_t src[ETH_ALEN]; + uint8_t client[ETH_ALEN]; +} __packed; + #endif /* _NET_BATMAN_ADV_PACKET_H_ */