summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-11-06 03:04:15 +0200
committerTimo Teräs <timo.teras@iki.fi>2010-11-06 03:04:15 +0200
commit1e22653f90754bc32157139dcbcd1562bdf87850 (patch)
tree67203562c00ce2fe267790bde87ef3239a06ddb7
parentb9d9b335707727e0e3679b1d7023e17d318eec5a (diff)
downloadsquark-1e22653f90754bc32157139dcbcd1562bdf87850.tar.bz2
squark-1e22653f90754bc32157139dcbcd1562bdf87850.tar.xz
auth-snmp: fix 1810 version test
It has dot. So it's P.1 series which is buggy.
-rw-r--r--squark-auth-snmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/squark-auth-snmp.c b/squark-auth-snmp.c
index f3761dd..81b846d 100644
--- a/squark-auth-snmp.c
+++ b/squark-auth-snmp.c
@@ -907,7 +907,8 @@ static int auth_handle_switch_info_reply(int oper, netsnmp_session *s, int reqid
* P2.x+ seem to work more or less */
if (si->system_version &&
si->system_version[0] == 'P' &&
- si->system_version[1] <= '1')
+ si->system_version[1] == '.' &&
+ si->system_version[2] <= '1')
si->flags |= SWITCHF_BRIDGE_MIB_HAS_VLAN;
break;
}