Changeset View
Changeset View
Standalone View
Standalone View
sys/netipsec/key.h
| Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
| #define KEY_GETTUNNEL(osrc, odst, isrc, idst) \ | #define KEY_GETTUNNEL(osrc, odst, isrc, idst) \ | ||||
| key_gettunnel(osrc, odst, isrc, idst, __FILE__, __LINE__) | key_gettunnel(osrc, odst, isrc, idst, __FILE__, __LINE__) | ||||
| #endif | #endif | ||||
| #define KEY_FREESP(spp) \ | #define KEY_FREESP(spp) \ | ||||
| _key_freesp(spp, __FILE__, __LINE__) | _key_freesp(spp, __FILE__, __LINE__) | ||||
| extern struct secasvar *key_allocsa(union sockaddr_union *, u_int, u_int32_t, | extern struct secasvar *key_allocsa(union sockaddr_union *, u_int, u_int32_t, | ||||
| const char*, int); | const char*, int); | ||||
| extern struct secasvar *key_allocsa_tunnel(union sockaddr_union *, | |||||
| union sockaddr_union *, u_int, const char*, int); | |||||
| extern void key_addrefsa(struct secasvar *, const char*, int); | extern void key_addrefsa(struct secasvar *, const char*, int); | ||||
| extern void key_freesav(struct secasvar **, const char*, int); | extern void key_freesav(struct secasvar **, const char*, int); | ||||
| #define KEY_ALLOCSA(dst, proto, spi) \ | #define KEY_ALLOCSA(dst, proto, spi) \ | ||||
| key_allocsa(dst, proto, spi, __FILE__, __LINE__) | key_allocsa(dst, proto, spi, __FILE__, __LINE__) | ||||
| #define KEY_ALLOCSA_TUNNEL(src, dst, proto) \ | |||||
| key_allocsa_tunnel(src, dst, proto, __FILE__, __LINE__) | |||||
| #define KEY_ADDREFSA(sav) \ | #define KEY_ADDREFSA(sav) \ | ||||
| key_addrefsa(sav, __FILE__, __LINE__) | key_addrefsa(sav, __FILE__, __LINE__) | ||||
| #define KEY_FREESAV(psav) \ | #define KEY_FREESAV(psav) \ | ||||
| key_freesav(psav, __FILE__, __LINE__) | key_freesav(psav, __FILE__, __LINE__) | ||||
| extern void key_freeso(struct socket *); | extern void key_freeso(struct socket *); | ||||
| extern int key_checktunnelsanity(struct secasvar *, u_int, | extern int key_checktunnelsanity(struct secasvar *, u_int, | ||||
| caddr_t, caddr_t); | caddr_t, caddr_t); | ||||
| Show All 35 Lines | |||||