On Saturday, January 16, 2016 16:40:15 Marek Lindner wrote:
From: Antonio Quartulli antonio@open-mesh.com
To enable ELP to send probing packets over wireless links only if needed, batman-adv must keep track of the last time it sent a unicast packet towards every neighbour.
For this purpose a 2 main changes are introduced:
- a new member of the elp_neigh_node structure stores the last time a unicast packet was sent towards this neighbour;
- a wrapper function for sending unicast packets is implemented. This function will simply update the member describe din point 1) and then forward the packet to the real sending routine.
Point 2) implies that any code-path leading to a unicast sending now has to use the new wrapper.
Signed-off-by: Antonio Quartulli antonio@open-mesh.com
net/batman-adv/bat_iv_ogm.c | 2 +- net/batman-adv/bat_v_elp.c | 2 +- net/batman-adv/bat_v_ogm.c | 2 +- net/batman-adv/distributed-arp-table.c | 4 +-- net/batman-adv/fragmentation.c | 8 ++--- net/batman-adv/icmp_socket.c | 2 +- net/batman-adv/network-coding.c | 22 +++++++------- net/batman-adv/send.c | 55 +++++++++++++++++++++++++++++----- net/batman-adv/send.h | 10 +++++-- net/batman-adv/types.h | 2 ++ 10 files changed, 75 insertions(+), 34 deletions(-)
Applied in revision cdc4545.
Thanks, Marek