Remove unused variables and sysctl declaration.
MFC after: 1 week
This commit is contained in:
parent
6ca39da354
commit
15bf717a93
@ -110,7 +110,6 @@ VNET_PCPUSTAT_SYSINIT(ipsec4stat);
|
||||
VNET_PCPUSTAT_SYSUNINIT(ipsec4stat);
|
||||
#endif /* VIMAGE */
|
||||
|
||||
VNET_DEFINE(int, ip4_ah_offsetmask) = 0; /* maybe IP_DF? */
|
||||
/* DF bit on encap. 0: clear 1: set 2: copy */
|
||||
VNET_DEFINE(int, ip4_ipsec_dfbit) = 0;
|
||||
VNET_DEFINE(int, ip4_esp_trans_deflev) = IPSEC_LEVEL_USE;
|
||||
@ -119,7 +118,6 @@ VNET_DEFINE(int, ip4_ah_trans_deflev) = IPSEC_LEVEL_USE;
|
||||
VNET_DEFINE(int, ip4_ah_net_deflev) = IPSEC_LEVEL_USE;
|
||||
/* ECN ignore(-1)/forbidden(0)/allowed(1) */
|
||||
VNET_DEFINE(int, ip4_ipsec_ecn) = 0;
|
||||
VNET_DEFINE(int, ip4_esp_randpad) = -1;
|
||||
|
||||
static VNET_DEFINE(int, ip4_filtertunnel) = 0;
|
||||
#define V_ip4_filtertunnel VNET(ip4_filtertunnel)
|
||||
@ -194,9 +192,6 @@ SYSCTL_INT(_net_inet_ipsec, IPSECCTL_DEF_AH_NETLEV, ah_net_deflev,
|
||||
SYSCTL_INT(_net_inet_ipsec, IPSECCTL_AH_CLEARTOS, ah_cleartos,
|
||||
CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(ah_cleartos), 0,
|
||||
"If set, clear type-of-service field when doing AH computation.");
|
||||
SYSCTL_INT(_net_inet_ipsec, IPSECCTL_AH_OFFSETMASK, ah_offsetmask,
|
||||
CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(ip4_ah_offsetmask), 0,
|
||||
"If not set, clear offset field mask when doing AH computation.");
|
||||
SYSCTL_INT(_net_inet_ipsec, IPSECCTL_DFBIT, dfbit,
|
||||
CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(ip4_ipsec_dfbit), 0,
|
||||
"Do not fragment bit on encap.");
|
||||
|
@ -280,10 +280,8 @@ VNET_DECLARE(int, ip4_esp_trans_deflev);
|
||||
VNET_DECLARE(int, ip4_esp_net_deflev);
|
||||
VNET_DECLARE(int, ip4_ah_trans_deflev);
|
||||
VNET_DECLARE(int, ip4_ah_net_deflev);
|
||||
VNET_DECLARE(int, ip4_ah_offsetmask);
|
||||
VNET_DECLARE(int, ip4_ipsec_dfbit);
|
||||
VNET_DECLARE(int, ip4_ipsec_ecn);
|
||||
VNET_DECLARE(int, ip4_esp_randpad);
|
||||
VNET_DECLARE(int, crypto_support);
|
||||
VNET_DECLARE(int, async_crypto);
|
||||
VNET_DECLARE(int, natt_cksum_policy);
|
||||
@ -294,10 +292,8 @@ VNET_DECLARE(int, natt_cksum_policy);
|
||||
#define V_ip4_esp_net_deflev VNET(ip4_esp_net_deflev)
|
||||
#define V_ip4_ah_trans_deflev VNET(ip4_ah_trans_deflev)
|
||||
#define V_ip4_ah_net_deflev VNET(ip4_ah_net_deflev)
|
||||
#define V_ip4_ah_offsetmask VNET(ip4_ah_offsetmask)
|
||||
#define V_ip4_ipsec_dfbit VNET(ip4_ipsec_dfbit)
|
||||
#define V_ip4_ipsec_ecn VNET(ip4_ipsec_ecn)
|
||||
#define V_ip4_esp_randpad VNET(ip4_esp_randpad)
|
||||
#define V_crypto_support VNET(crypto_support)
|
||||
#define V_async_crypto VNET(async_crypto)
|
||||
#define V_natt_cksum_policy VNET(natt_cksum_policy)
|
||||
|
Loading…
Reference in New Issue
Block a user