diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1997-02-28 02:56:51 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1997-02-28 02:56:51 +0000 |
commit | e89bd3904c1ce897bb01cf761fff05a6dbdf1059 (patch) | |
tree | d34990ea4c6e500a385d25fc6147aca11bfbaa86 /sys/kern | |
parent | 777f9dabc8a3b8c2a33f183ddfb80cddcb972a09 (diff) |
IPsec socket API additions.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_socket.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index c6650e48c29..831d42da53f 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket.c,v 1.8 1996/12/16 14:30:17 deraadt Exp $ */ +/* $OpenBSD: uipc_socket.c,v 1.9 1997/02/28 02:56:50 angelos Exp $ */ /* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */ /* @@ -91,6 +91,9 @@ socreate(dom, aso, type, proto) so->so_state = SS_PRIV; so->so_uid = p->p_ucred->cr_uid; so->so_proto = prp; + so->so_seclevel[SL_AUTH] = IPSEC_AUTH_LEVEL_DEFAULT; + so->so_seclevel[SL_ESP_TRANS] = IPSEC_ESP_TRANS_LEVEL_DEFAULT; + so->so_seclevel[SL_ESP_NETWORK] = IPSEC_ESP_NETWORK_LEVEL_DEFAULT; error = (*prp->pr_usrreq)(so, PRU_ATTACH, NULL, (struct mbuf *)(long)proto, NULL); @@ -158,6 +161,9 @@ sofree(so) panic("sofree dq"); so->so_head = 0; } +#ifdef IPSEC + /* XXX Free TDBs/routing entries if necessary */ +#endif sbrelease(&so->so_snd); sorflush(so); FREE(so, M_SOCKET); |