• Antonio Quartulli's avatar
    batman-adv: send every DHCP packet as bat-unicast · 6c413b1c
    Antonio Quartulli authored
    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: default avatarAntonio Quartulli <antonio@open-mesh.com>
    Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
    6c413b1c
send.c 19.1 KB