Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 2020 11:22:29 +0000 (UTC)
From:      Marcin Wojtas <mw@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366755 - head/sys/net
Message-ID:  <202010161122.09GBMTsM073643@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mw
Date: Fri Oct 16 11:22:29 2020
New Revision: 366755
URL: https://svnweb.freebsd.org/changeset/base/366755

Log:
  Add SADB_SAFLAGS_ESN flag
  
  This flag is going to be used by IKE daemon to signal if
  Extended Sequence Number feature is going to be used.
  
  Value for this flag was taken from OpenBSD source code
  https://github.com/openbsd/src/commit/6b4cbaf181c6b60701d9fb888fd0e7a4333eecbd
  
  Submitted by:           Patryk Duda <pdk@semihalf.com>
  Reviewed by:            ae
  Differential revision:  https://reviews.freebsd.org/D22366
  Obtained from:          Semihalf
  Sponsored by:           Stormshield

Modified:
  head/sys/net/pfkeyv2.h

Modified: head/sys/net/pfkeyv2.h
==============================================================================
--- head/sys/net/pfkeyv2.h	Fri Oct 16 11:21:56 2020	(r366754)
+++ head/sys/net/pfkeyv2.h	Fri Oct 16 11:22:29 2020	(r366755)
@@ -348,6 +348,8 @@ _Static_assert(sizeof(struct sadb_x_sa_replay) == 8, "
 #define SADB_SASTATE_MAX      3
 
 #define SADB_SAFLAGS_PFS      1
+/* SADB_X_SAFLAGS_ESN was defined in sys/net/pfkeyv2.h in OpenBSD sources */
+#define SADB_X_SAFLAGS_ESN    0x400
 
 /*
  * Though some of these numbers (both _AALG and _EALG) appear to be



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010161122.09GBMTsM073643>