diff options
author | 2011-04-13 11:28:47 +0000 | |
---|---|---|
committer | 2011-04-13 11:28:47 +0000 | |
commit | a179681a34fbb84c092f9877cc340b4e0508ede3 (patch) | |
tree | e52115fe1c97eb70ed476de8d040dd391b00b5f9 /sys | |
parent | to quote from the gospel of bus_dma.9: (diff) | |
download | wireguard-openbsd-a179681a34fbb84c092f9877cc340b4e0508ede3.tar.xz wireguard-openbsd-a179681a34fbb84c092f9877cc340b4e0508ede3.zip |
export udpencap state of SA to userland; unbreaks sasyncd(8) with NAT/T.
ok mikeb@ fries@ mpf@ henning@ dlg@ matthew@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pfkeyv2_convert.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |