diff options
| author | George V. Neville-Neil <gnn@FreeBSD.org> | 2008-05-17 04:00:11 +0000 |
|---|---|---|
| committer | George V. Neville-Neil <gnn@FreeBSD.org> | 2008-05-17 04:00:11 +0000 |
| commit | 4b4b5fb6b8a1e3600a1d326c31c51e9b8a5dd170 (patch) | |
| tree | d37d23252d6f8a1cc2a9dccfa78704c2a0602279 /sys/netipsec/ipsec.h | |
| parent | d94ccb096b76ddbb8438fb25688921d50b36f9c1 (diff) | |
Notes
Diffstat (limited to 'sys/netipsec/ipsec.h')
| -rw-r--r-- | sys/netipsec/ipsec.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec.h b/sys/netipsec/ipsec.h index d49aefde20be..caaf42a41782 100644 --- a/sys/netipsec/ipsec.h +++ b/sys/netipsec/ipsec.h @@ -44,10 +44,17 @@ #include <net/pfkeyv2.h> #include <netipsec/keydb.h> -#include <netipsec/ipsec_osdep.h> #ifdef _KERNEL +#define IPSEC_SPLASSERT_SOFTNET(_m) /* XXX-BZ remove me */ +#define IPSEC_ASSERT(_c,_m) KASSERT(_c, _m) + +#define IPSEC_IS_PRIVILEGED_SO(_so) \ + ((_so)->so_cred != NULL && \ + priv_check_cred((_so)->so_cred, PRIV_NETINET_IPSEC, 0) \ + == 0) + /* * Security Policy Index * Ensure that both address families in the "src" and "dst" are same. |
