batman-adv: send every DHCP packet as bat-unicast
authorAntonio Quartulli <antonio@open-mesh.com>
Tue, 5 Nov 2013 18:31:08 +0000 (19:31 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 8 Jan 2014 19:49:42 +0000 (20:49 +0100)
commit6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9
tree5e7d10d691a64b8ae180d4f718a41120118c6432
parent36484f84d567f79fc7cc62c4391c7752a0ede7f2
batman-adv: send every DHCP packet as bat-unicast

In different situations it is possible that the DHCP server
or client uses broadcast Ethernet frames to send messages
to each other. The GW component in batman-adv takes care of
using bat-unicast packets to bring broadcast DHCP
Discover/Requests to the "best" server.

On the way back the DHCP server usually sends unicasts,
but upon client request it may decide to use broadcasts as
well.

This patch improves the GW component so that it now snoops
and sends as unicast all the DHCP packets, no matter if they
were generated by a DHCP server or client.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/distributed-arp-table.c
net/batman-adv/gateway_client.c
net/batman-adv/gateway_client.h
net/batman-adv/send.c
net/batman-adv/send.h
net/batman-adv/soft-interface.c
net/batman-adv/types.h