key_var.h (c398230b64aea809cb7c5cea8db580af7097920c) | key_var.h (a0196c3c891ccf2ee88854f9798fd8e44d0e9f16) |
---|---|
1/* $FreeBSD$ */ 2/* $KAME: key_var.h,v 1.11 2001/09/12 23:05:07 sakane 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 --- 52 unchanged lines hidden (view full) --- 61 { "esp_keymin", CTLTYPE_INT }, \ 62 { "esp_auth", CTLTYPE_INT }, \ 63 { "ah_keymin", CTLTYPE_INT }, \ 64 { "prefered_oldsa", CTLTYPE_INT }, \ 65} 66 67#ifdef _KERNEL 68#define _ARRAYLEN(p) (sizeof(p)/sizeof(p[0])) | 1/* $FreeBSD$ */ 2/* $KAME: key_var.h,v 1.11 2001/09/12 23:05:07 sakane 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 --- 52 unchanged lines hidden (view full) --- 61 { "esp_keymin", CTLTYPE_INT }, \ 62 { "esp_auth", CTLTYPE_INT }, \ 63 { "ah_keymin", CTLTYPE_INT }, \ 64 { "prefered_oldsa", CTLTYPE_INT }, \ 65} 66 67#ifdef _KERNEL 68#define _ARRAYLEN(p) (sizeof(p)/sizeof(p[0])) |
69#define _KEYLEN(key) ((u_int)((key)->sadb_key_bits >> 3)) 70#define _KEYBITS(key) ((u_int)((key)->sadb_key_bits)) | 69#define _KEYLEN(key) ((u_int)((key)->bits >> 3)) 70#define _KEYBITS(key) ((u_int)((key)->bits)) |
71#define _KEYBUF(key) ((caddr_t)((caddr_t)(key) + sizeof(struct sadb_key))) 72#endif /*_KERNEL*/ 73 74#endif /* _NETIPSEC_KEY_VAR_H_ */ | 71#define _KEYBUF(key) ((caddr_t)((caddr_t)(key) + sizeof(struct sadb_key))) 72#endif /*_KERNEL*/ 73 74#endif /* _NETIPSEC_KEY_VAR_H_ */ |