On Tuesday 05 November 2013 19:31:08 Antonio Quartulli wrote:
From: Antonio Quartulli antonio@open-mesh.com
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
distributed-arp-table.c | 4 +- gateway_client.c | 171 +++++++++++++++++++++--------------------------- gateway_client.h | 4 +- send.c | 16 ++++- send.h | 10 +-- soft-interface.c | 76 +++++++++++---------- types.h | 12 ++++ 7 files changed, 153 insertions(+), 140 deletions(-)
Applied in revision 2d5b555.
Thanks, Marek