Deleted Added
sdiff udiff text old ( 196882 ) new ( 207369 )
full compact
1/* $FreeBSD: head/sys/netipsec/ipsec.h 196882 2009-09-06 07:30:21Z pjd $ */
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

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

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(ipsec_debug)
337VNET_DECLARE(struct ipsecstat, ipsec4stat);
338#define V_ipsec4stat VNET(ipsec4stat)
339VNET_DECLARE(int, ip4_ah_offsetmask);
340#define V_ip4_ah_offsetmask VNET(ip4_ah_offsetmask)
341VNET_DECLARE(int, ip4_ipsec_dfbit);
342#define V_ip4_ipsec_dfbit VNET(ip4_ipsec_dfbit)
343VNET_DECLARE(int, ip4_esp_trans_deflev);
344#define V_ip4_esp_trans_deflev VNET(ip4_esp_trans_deflev)
345VNET_DECLARE(int, ip4_esp_net_deflev);
346#define V_ip4_esp_net_deflev VNET(ip4_esp_net_deflev)
347VNET_DECLARE(int, ip4_ah_trans_deflev);
348#define V_ip4_ah_trans_deflev VNET(ip4_ah_trans_deflev)
349VNET_DECLARE(int, ip4_ah_net_deflev);
350#define V_ip4_ah_net_deflev VNET(ip4_ah_net_deflev)
351VNET_DECLARE(struct secpolicy, ip4_def_policy);
352#define V_ip4_def_policy VNET(ip4_def_policy)
353VNET_DECLARE(int, ip4_ipsec_ecn);
354#define V_ip4_ipsec_ecn VNET(ip4_ipsec_ecn)
355VNET_DECLARE(int, ip4_esp_randpad);
356#define V_ip4_esp_randpad VNET(ip4_esp_randpad)
357
358VNET_DECLARE(int, 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);
365#define V_ipsec_replay VNET(ipsec_replay)
366VNET_DECLARE(int, 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 *);
376
377struct tdb_ident;

--- 76 unchanged lines hidden ---