From 7efa2172b6fc831b692541b11df80464507bb60f Mon Sep 17 00:00:00 2001 From: angelos Date: Fri, 28 Feb 1997 02:14:58 +0000 Subject: [PATCH] Can't make up my mind; i think this is final. --- sys/sys/socket.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/sys/sys/socket.h b/sys/sys/socket.h index 0f968c2f6ce..3747259dddb 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -1,4 +1,4 @@ -/* $OpenBSD: socket.h,v 1.11 1997/02/28 02:03:33 angelos Exp $ */ +/* $OpenBSD: socket.h,v 1.12 1997/02/28 02:14:58 angelos Exp $ */ /* $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ */ /* @@ -66,10 +66,6 @@ #define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ #define SO_REUSEPORT 0x0200 /* allow local address & port reuse */ -#define SO_IPSEC_AUTH_LEVEL 0x0400 /* Authentication used */ -#define SO_IPSEC_ESP_TRANS_LEVEL 0x0800 /* Transport encryption */ -#define SO_IPSEC_ESP_NETWORK_LEVEL 0x1000 /* Full-packet encryption */ - /* * Additional options, not kept in so_options. */ @@ -81,6 +77,17 @@ #define SO_RCVTIMEO 0x1006 /* receive timeout */ #define SO_ERROR 0x1007 /* get error status and clear */ #define SO_TYPE 0x1008 /* get socket type */ +#define SO_IPSEC_AUTH_LEVEL 0x1009 /* Authentication used */ +#define SO_IPSEC_ESP_TRANS_LEVEL 0x100a /* Transport encryption */ +#define SO_IPSEC_ESP_NETWORK_LEVEL 0x100b /* Full-packet encryption */ + +/* + * Just for compatibility with the draft + */ + +#define IPSEC_AUTH_LEVEL SO_IPSEC_AUTH_LEVEL +#define IPSEC_ESP_TRANS_LEVEL SO_IPSEC_ESP_TRANS_LEVEL +#define IPSEC_ESP_NETWORK_LEVEL SO_IPSEC_ESP_NETWORK_LEVEL /* * Security levels -- 2.20.1