batman-adv: introduce packet type handler array for incoming packets
authorMarek Lindner <lindner_marek@yahoo.de>
Thu, 1 Mar 2012 07:35:17 +0000 (15:35 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Fri, 11 May 2012 08:08:10 +0000 (10:08 +0200)
commitffa995e036bef734ea40cbbccda574d1df3a8a58
tree396d7c202f1b0d82dce905e7d70c32708886f404
parent75cd33f86396c446f84c4bb620be70c36a2a54f6
batman-adv: introduce packet type handler array for incoming packets

The packet handler array replaces the growing switch statement, thus
dealing with incoming packets in a more efficient way. It also adds
to possibility to register packet handlers on the fly.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/hard-interface.c
net/batman-adv/main.c
net/batman-adv/main.h