summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/tools/array2bin.c
diff options
context:
space:
mode:
authormaxv <maxv@NetBSD.org>2018-05-30 18:02:40 +0000
committermaxv <maxv@NetBSD.org>2018-05-30 18:02:40 +0000
commit6746d4709d7f1d786831214ddccc1e73528e6627 (patch)
tree37a076871a420e4b1a9ec9830c3c34400b3fdf7e /sys/dev/microcode/tools/array2bin.c
parent9128e3119d85146df2a0960362103d312b5f72ae (diff)
Correctly handle the padding for IPv6-AH, as specified by RFC4302. Seen in
a FreeBSD bug report, by Jason Mader. The RFC specifies that under IPv6 the complete AH header must be 64bit- aligned, and under IPv4 32bit-aligned. That's a rule we've never respected. The other BSDs and MacOS never have either. So respect it now. This makes it possible to set up IPv6-AH between Linux and NetBSD, and also probably between Windows and NetBSD. Until now all the tests I made were between two *BSD hosts, and everything worked "correctly" since both hosts were speaking the same non-standard AHv6, so they could understand each other. Tested with Fedora<->NetBSD, hmac-sha2-384.
Diffstat (limited to 'sys/dev/microcode/tools/array2bin.c')
0 files changed, 0 insertions, 0 deletions