]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/batman-adv/distributed-arp-table.c
batman-adv: keep track of when unicast packets are sent
authorAntonio Quartulli <antonio@open-mesh.com>
Sat, 16 Jan 2016 08:40:15 +0000 (16:40 +0800)
committerAntonio Quartulli <a@unstable.cc>
Mon, 29 Feb 2016 08:05:32 +0000 (16:05 +0800)
commit95d392784dd0a51e4216e075f04a68c922745985
tree4494e96e8be0cfbe82cb2ad7605a825a01c577ce
parent0b5ecc6811bd576ecc9813bbe069f2293cb1c6aa
batman-adv: keep track of when unicast packets are sent

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:
1) a new member of the elp_neigh_node structure stores the
   last time a unicast packet was sent towards this neighbour;
2) 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>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bat_v_elp.c
net/batman-adv/bat_v_ogm.c
net/batman-adv/distributed-arp-table.c
net/batman-adv/fragmentation.c
net/batman-adv/icmp_socket.c
net/batman-adv/network-coding.c
net/batman-adv/send.c
net/batman-adv/send.h
net/batman-adv/types.h