ipsec.h (b754c27916c5d1b0fe2f57d6d4ba94c7de1b541b) ipsec.h (39bbca6ffd794bb72156fb8053ad0ea03ac98e19)
1/* $FreeBSD$ */
2/* $KAME: ipsec.h,v 1.53 2001/11/20 08:32:38 itojun Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 269 unchanged lines hidden (view full) ---

278VNET_DECLARE(int, ip4_esp_net_deflev);
279VNET_DECLARE(int, ip4_ah_trans_deflev);
280VNET_DECLARE(int, ip4_ah_net_deflev);
281VNET_DECLARE(int, ip4_ah_offsetmask);
282VNET_DECLARE(int, ip4_ipsec_dfbit);
283VNET_DECLARE(int, ip4_ipsec_ecn);
284VNET_DECLARE(int, ip4_esp_randpad);
285VNET_DECLARE(int, crypto_support);
1/* $FreeBSD$ */
2/* $KAME: ipsec.h,v 1.53 2001/11/20 08:32:38 itojun Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 269 unchanged lines hidden (view full) ---

278VNET_DECLARE(int, ip4_esp_net_deflev);
279VNET_DECLARE(int, ip4_ah_trans_deflev);
280VNET_DECLARE(int, ip4_ah_net_deflev);
281VNET_DECLARE(int, ip4_ah_offsetmask);
282VNET_DECLARE(int, ip4_ipsec_dfbit);
283VNET_DECLARE(int, ip4_ipsec_ecn);
284VNET_DECLARE(int, ip4_esp_randpad);
285VNET_DECLARE(int, crypto_support);
286VNET_DECLARE(int, async_crypto);
286VNET_DECLARE(int, natt_cksum_policy);
287
288#define IPSECSTAT_INC(name) \
289 VNET_PCPUSTAT_ADD(struct ipsecstat, ipsec4stat, name, 1)
290#define V_ip4_esp_trans_deflev VNET(ip4_esp_trans_deflev)
291#define V_ip4_esp_net_deflev VNET(ip4_esp_net_deflev)
292#define V_ip4_ah_trans_deflev VNET(ip4_ah_trans_deflev)
293#define V_ip4_ah_net_deflev VNET(ip4_ah_net_deflev)
294#define V_ip4_ah_offsetmask VNET(ip4_ah_offsetmask)
295#define V_ip4_ipsec_dfbit VNET(ip4_ipsec_dfbit)
296#define V_ip4_ipsec_ecn VNET(ip4_ipsec_ecn)
297#define V_ip4_esp_randpad VNET(ip4_esp_randpad)
298#define V_crypto_support VNET(crypto_support)
287VNET_DECLARE(int, natt_cksum_policy);
288
289#define IPSECSTAT_INC(name) \
290 VNET_PCPUSTAT_ADD(struct ipsecstat, ipsec4stat, name, 1)
291#define V_ip4_esp_trans_deflev VNET(ip4_esp_trans_deflev)
292#define V_ip4_esp_net_deflev VNET(ip4_esp_net_deflev)
293#define V_ip4_ah_trans_deflev VNET(ip4_ah_trans_deflev)
294#define V_ip4_ah_net_deflev VNET(ip4_ah_net_deflev)
295#define V_ip4_ah_offsetmask VNET(ip4_ah_offsetmask)
296#define V_ip4_ipsec_dfbit VNET(ip4_ipsec_dfbit)
297#define V_ip4_ipsec_ecn VNET(ip4_ipsec_ecn)
298#define V_ip4_esp_randpad VNET(ip4_esp_randpad)
299#define V_crypto_support VNET(crypto_support)
300#define V_async_crypto VNET(async_crypto)
299#define V_natt_cksum_policy VNET(natt_cksum_policy)
300
301#define ipseclog(x) do { if (V_ipsec_debug) log x; } while (0)
302/* for openbsd compatibility */
303#ifdef IPSEC_DEBUG
304#define IPSEC_DEBUG_DECLARE(x) x
305#define DPRINTF(x) do { if (V_ipsec_debug) printf x; } while (0)
306#else

--- 62 unchanged lines hidden ---
301#define V_natt_cksum_policy VNET(natt_cksum_policy)
302
303#define ipseclog(x) do { if (V_ipsec_debug) log x; } while (0)
304/* for openbsd compatibility */
305#ifdef IPSEC_DEBUG
306#define IPSEC_DEBUG_DECLARE(x) x
307#define DPRINTF(x) do { if (V_ipsec_debug) printf x; } while (0)
308#else

--- 62 unchanged lines hidden ---