public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: add BAT_UNICAST_4ADDR handler in the packet-handlers array
@ 2012-03-15 16:48 Antonio Quartulli
  2012-03-15 17:21 ` Antonio Quartulli
  0 siblings, 1 reply; 3+ messages in thread
From: Antonio Quartulli @ 2012-03-15 16:48 UTC (permalink / raw)
  To: b.a.t.m.a.n

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.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
 main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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 */
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-20 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15 16:48 [B.A.T.M.A.N.] [PATCH] batman-adv: add BAT_UNICAST_4ADDR handler in the packet-handlers array Antonio Quartulli
2012-03-15 17:21 ` Antonio Quartulli
2012-03-20 12:53   ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox