aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@open-mesh.com>2013-03-28 09:21:12 -0400
committerAntonio Quartulli <ordex@autistici.org>2013-05-28 20:44:53 -0400
commita3b81b67de6ae0475c0c34c552c059f7bea2f520 (patch)
tree1df0e0ab4b3fcea5f08e4bf33f710369ae88ff62 /net/batman-adv
parent281581d3e79eaacfcdc0827e9bf990422252ba5c (diff)
batman-adv: don't check compat version twice
Compatibility version is checked upon packet reception before calling any handler. For this reason it does need to be checked once more in the handler itself. Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/bat_iv_ogm.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
index 6d62e2992dfa..38183dc6965d 100644
--- a/net/batman-adv/bat_iv_ogm.c
+++ b/net/batman-adv/bat_iv_ogm.c
@@ -1054,13 +1054,6 @@ static void batadv_iv_ogm_process(const struct ethhdr *ethhdr,
1054 } 1054 }
1055 rcu_read_unlock(); 1055 rcu_read_unlock();
1056 1056
1057 if (batadv_ogm_packet->header.version != BATADV_COMPAT_VERSION) {
1058 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
1059 "Drop packet: incompatible batman version (%i)\n",
1060 batadv_ogm_packet->header.version);
1061 return;
1062 }
1063
1064 if (is_my_addr) { 1057 if (is_my_addr) {
1065 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, 1058 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
1066 "Drop packet: received my own broadcast (sender: %pM)\n", 1059 "Drop packet: received my own broadcast (sender: %pM)\n",