From 470e900b80faeac566d5c62ca71a7dcbd8da5860 Mon Sep 17 00:00:00 2001 From: Quentin Armitage Date: Tue, 10 Nov 2015 07:58:22 +0000 Subject: Remove remaining 2.2 kernel code Commit d51194f... removed support for the 2.2 kernel, but one small section of code was left over. This patch removes that code. Signed-off-by: Quentin Armitage (cherry picked from commit 49b8c1e34162f5bd30bf5cb5ecc9de1ea05d181a) --- keepalived/check/check_snmp.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/keepalived/check/check_snmp.c b/keepalived/check/check_snmp.c index 96e2d9b..83cc41e 100644 --- a/keepalived/check/check_snmp.c +++ b/keepalived/check/check_snmp.c @@ -280,17 +280,6 @@ check_snmp_virtualserver(struct variable *vp, oid *name, size_t *length, long_ret = 0; switch (v->loadbalancing_kind) { #ifdef _WITH_LVS_ -#ifdef _KRNL_2_2_ - case 0: - long_ret = 1; - break; - case IP_MASQ_F_VS_DROUTE: - long_ret = 2; - break; - case IP_MASQ_F_VS_TUNNEL: - long_ret = 3; - break; -#else case IP_VS_CONN_F_MASQ: long_ret = 1; break; @@ -301,7 +290,6 @@ check_snmp_virtualserver(struct variable *vp, oid *name, size_t *length, long_ret = 3; break; #endif -#endif } if (!long_ret) break; return (u_char*)&long_ret; -- 1.7.12.1