Deleted Added
full compact
ipsec.h (195699) ipsec.h (195727)
1/* $FreeBSD: head/sys/netipsec/ipsec.h 195699 2009-07-14 22:48:30Z rwatson $ */
1/* $FreeBSD: head/sys/netipsec/ipsec.h 195727 2009-07-16 21:13:04Z rwatson $ */
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
9 * modification, are permitted provided that the following conditions

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

328};
329
330struct ipsec_history {
331 int ih_proto;
332 u_int32_t ih_spi;
333};
334
335VNET_DECLARE(int, ipsec_debug);
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
9 * modification, are permitted provided that the following conditions

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

328};
329
330struct ipsec_history {
331 int ih_proto;
332 u_int32_t ih_spi;
333};
334
335VNET_DECLARE(int, ipsec_debug);
336#define V_ipsec_debug VNET_GET(ipsec_debug)
336#define V_ipsec_debug VNET(ipsec_debug)
337VNET_DECLARE(struct ipsecstat, ipsec4stat);
337VNET_DECLARE(struct ipsecstat, ipsec4stat);
338#define V_ipsec4stat VNET_GET(ipsec4stat)
338#define V_ipsec4stat VNET(ipsec4stat)
339VNET_DECLARE(int, ip4_ah_offsetmask);
339VNET_DECLARE(int, ip4_ah_offsetmask);
340#define V_ip4_ah_offsetmask VNET_GET(ip4_ah_offsetmask)
340#define V_ip4_ah_offsetmask VNET(ip4_ah_offsetmask)
341VNET_DECLARE(int, ip4_ipsec_dfbit);
341VNET_DECLARE(int, ip4_ipsec_dfbit);
342#define V_ip4_ipsec_dfbit VNET_GET(ip4_ipsec_dfbit)
342#define V_ip4_ipsec_dfbit VNET(ip4_ipsec_dfbit)
343VNET_DECLARE(int, ip4_esp_trans_deflev);
343VNET_DECLARE(int, ip4_esp_trans_deflev);
344#define V_ip4_esp_trans_deflev VNET_GET(ip4_esp_trans_deflev)
344#define V_ip4_esp_trans_deflev VNET(ip4_esp_trans_deflev)
345VNET_DECLARE(int, ip4_esp_net_deflev);
345VNET_DECLARE(int, ip4_esp_net_deflev);
346#define V_ip4_esp_net_deflev VNET_GET(ip4_esp_net_deflev)
346#define V_ip4_esp_net_deflev VNET(ip4_esp_net_deflev)
347VNET_DECLARE(int, ip4_ah_trans_deflev);
347VNET_DECLARE(int, ip4_ah_trans_deflev);
348#define V_ip4_ah_trans_deflev VNET_GET(ip4_ah_trans_deflev)
348#define V_ip4_ah_trans_deflev VNET(ip4_ah_trans_deflev)
349VNET_DECLARE(int, ip4_ah_net_deflev);
349VNET_DECLARE(int, ip4_ah_net_deflev);
350#define V_ip4_ah_net_deflev VNET_GET(ip4_ah_net_deflev)
350#define V_ip4_ah_net_deflev VNET(ip4_ah_net_deflev)
351VNET_DECLARE(struct secpolicy, ip4_def_policy);
351VNET_DECLARE(struct secpolicy, ip4_def_policy);
352#define V_ip4_def_policy VNET_GET(ip4_def_policy)
352#define V_ip4_def_policy VNET(ip4_def_policy)
353VNET_DECLARE(int, ip4_ipsec_ecn);
353VNET_DECLARE(int, ip4_ipsec_ecn);
354#define V_ip4_ipsec_ecn VNET_GET(ip4_ipsec_ecn)
354#define V_ip4_ipsec_ecn VNET(ip4_ipsec_ecn)
355VNET_DECLARE(int, ip4_esp_randpad);
355VNET_DECLARE(int, ip4_esp_randpad);
356#define V_ip4_esp_randpad VNET_GET(ip4_esp_randpad)
356#define V_ip4_esp_randpad VNET(ip4_esp_randpad)
357
358VNET_DECLARE(int, crypto_support);
357
358VNET_DECLARE(int, crypto_support);
359#define V_crypto_support VNET_GET(crypto_support)
359#define V_crypto_support VNET(crypto_support)
360
361extern int ip4_ah_cleartos;
362
363#ifdef REGRESSION
364VNET_DECLARE(int, ipsec_replay);
360
361extern int ip4_ah_cleartos;
362
363#ifdef REGRESSION
364VNET_DECLARE(int, ipsec_replay);
365#define V_ipsec_replay VNET_GET(ipsec_replay)
365#define V_ipsec_replay VNET(ipsec_replay)
366VNET_DECLARE(int, ipsec_integrity);
366VNET_DECLARE(int, ipsec_integrity);
367#define V_ipsec_integrity VNET_GET(ipsec_integrity)
367#define V_ipsec_integrity VNET(ipsec_integrity)
368#endif
369
370#define ipseclog(x) do { if (V_ipsec_debug) log x; } while (0)
371/* for openbsd compatibility */
372#define DPRINTF(x) do { if (V_ipsec_debug) printf x; } while (0)
373
374extern struct ipsecrequest *ipsec_newisr(void);
375extern void ipsec_delisr(struct ipsecrequest *);

--- 78 unchanged lines hidden ---
368#endif
369
370#define ipseclog(x) do { if (V_ipsec_debug) log x; } while (0)
371/* for openbsd compatibility */
372#define DPRINTF(x) do { if (V_ipsec_debug) printf x; } while (0)
373
374extern struct ipsecrequest *ipsec_newisr(void);
375extern void ipsec_delisr(struct ipsecrequest *);

--- 78 unchanged lines hidden ---