From c9487c00a11eabd06299ecd4e35c2a91a4e6d55e Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Wed, 13 Apr 2011 11:28:48 +0000 Subject: export udpencap state of SA to userland; unbreaks sasyncd(8) with NAT/T. ok mikeb@ fries@ mpf@ henning@ dlg@ matthew@ --- sys/net/pfkeyv2_convert.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/net') diff --git a/sys/net/pfkeyv2_convert.c b/sys/net/pfkeyv2_convert.c index 8de7fdadc56..a029328b025 100644 --- a/sys/net/pfkeyv2_convert.c +++ b/sys/net/pfkeyv2_convert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkeyv2_convert.c,v 1.34 2010/10/06 22:19:20 mikeb Exp $ */ +/* $OpenBSD: pfkeyv2_convert.c,v 1.35 2011/04/13 11:28:47 markus Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@keromytis.org) * @@ -289,6 +289,9 @@ export_sa(void **p, struct tdb *tdb) if (tdb->tdb_flags & TDBF_NOREPLAY) sadb_sa->sadb_sa_flags |= SADB_X_SAFLAGS_NOREPLAY; + if (tdb->tdb_flags & TDBF_UDPENCAP) + sadb_sa->sadb_sa_flags |= SADB_X_SAFLAGS_UDPENCAP; + *p += sizeof(struct sadb_sa); } -- cgit v1.2.3