The following commit has been merged in the master branch: commit 7de96f50dd783093627501feec26f05f158588c9 Author: Antonio Quartulli ordex@autistici.org Date: Thu Mar 15 17:48:35 2012 +0100
batman-adv: add BAT_UNICAST_4ADDR handler in the packet-handlers array
Commit 1887248c268928ebb434edab611978f51e2a4b8f introduced the packet-handlers array but it forgot to set a proper handler for the BAT_UNICAST_4ADDR packet type. This patch fixes it.
Reported-by: Martin Hundebøll martin@hundeboll.net Signed-off-by: Antonio Quartulli ordex@autistici.org
diff --git a/main.c b/main.c index 75938fb..0757c2d 100644 --- a/main.c +++ b/main.c @@ -265,6 +265,8 @@ static void recv_handler_init(void)
/* batman icmp packet */ recv_packet_handler[BAT_ICMP] = recv_icmp_packet; + /* unicast with 4 addresses packet */ + recv_packet_handler[BAT_UNICAST_4ADDR] = recv_unicast_packet; /* unicast packet */ recv_packet_handler[BAT_UNICAST] = recv_unicast_packet; /* fragmented unicast packet */