key_debug.h (181803) | key_debug.h (195699) |
---|---|
1/* $FreeBSD: head/sys/netipsec/key_debug.h 181803 2008-08-17 23:27:27Z bz $ */ | 1/* $FreeBSD: head/sys/netipsec/key_debug.h 195699 2009-07-14 22:48:30Z rwatson $ */ |
2/* $KAME: key_debug.h,v 1.10 2001/08/05 08:37:52 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 --- 41 unchanged lines hidden (view full) --- 51#define KEYDEBUG_ALG_DUMP (KEYDEBUG_ALG | KEYDEBUG_DUMP) 52#define KEYDEBUG_IPSEC_STAMP (KEYDEBUG_IPSEC | KEYDEBUG_STAMP) 53#define KEYDEBUG_IPSEC_DATA (KEYDEBUG_IPSEC | KEYDEBUG_DATA) 54#define KEYDEBUG_IPSEC_DUMP (KEYDEBUG_IPSEC | KEYDEBUG_DUMP) 55 56#define KEYDEBUG(lev,arg) \ 57 do { if ((V_key_debug_level & (lev)) == (lev)) { arg; } } while (0) 58 | 2/* $KAME: key_debug.h,v 1.10 2001/08/05 08:37:52 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 --- 41 unchanged lines hidden (view full) --- 51#define KEYDEBUG_ALG_DUMP (KEYDEBUG_ALG | KEYDEBUG_DUMP) 52#define KEYDEBUG_IPSEC_STAMP (KEYDEBUG_IPSEC | KEYDEBUG_STAMP) 53#define KEYDEBUG_IPSEC_DATA (KEYDEBUG_IPSEC | KEYDEBUG_DATA) 54#define KEYDEBUG_IPSEC_DUMP (KEYDEBUG_IPSEC | KEYDEBUG_DUMP) 55 56#define KEYDEBUG(lev,arg) \ 57 do { if ((V_key_debug_level & (lev)) == (lev)) { arg; } } while (0) 58 |
59extern u_int32_t key_debug_level; | 59VNET_DECLARE(u_int32_t, key_debug_level); 60#define V_key_debug_level VNET_GET(key_debug_level) |
60#endif /*_KERNEL*/ 61 62struct sadb_msg; 63struct sadb_ext; 64extern void kdebug_sadb __P((struct sadb_msg *)); 65extern void kdebug_sadb_x_policy __P((struct sadb_ext *)); 66 67#ifdef _KERNEL --- 21 unchanged lines hidden --- | 61#endif /*_KERNEL*/ 62 63struct sadb_msg; 64struct sadb_ext; 65extern void kdebug_sadb __P((struct sadb_msg *)); 66extern void kdebug_sadb_x_policy __P((struct sadb_ext *)); 67 68#ifdef _KERNEL --- 21 unchanged lines hidden --- |