Page MenuHomeFreeBSD

Add large replay widow support to setkey(8) and improve setkey's debugging
ClosedPublic

Authored by ae on Apr 12 2017, 7:43 PM.
Tags
None
Referenced Files
F165208650: D10375.diff
Thu, Aug 6, 8:15 PM
F165176948: D10375.id27406.diff
Thu, Aug 6, 2:08 PM
F165125077: D10375.id27385.diff
Thu, Aug 6, 6:38 AM
Unknown Object (File)
Wed, Aug 5, 6:30 AM
Unknown Object (File)
Tue, Aug 4, 11:20 PM
Unknown Object (File)
Mon, Aug 3, 1:56 PM
Unknown Object (File)
Wed, Jul 29, 12:40 AM
Unknown Object (File)
Sun, Jul 26, 5:05 PM
Subscribers

Details

Summary

rS309144 added support for large replay window, but setkey(8) and libipsec lacks this support.
This patch adds support of new sadb_x_sa_replay extension header to libipsec and setkey(8).
setkey(8) can set replay window for SA using '-r' option. When the replay window size is large than 255 bytes, we should add SADB_X_EXT_SA_REPLAY extension header.

Also extend setkey's debugging support. setkey -x can be used like tcpdump for PF_KEY's traffic. Add support for several new extension headers and NAT-T headers. In kdebug_sadb_address() use inet_ntop() for IP address formatting instead of using less readable hexdump.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable