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
F152176977: D10375.id27406.diff
Mon, Apr 13, 6:17 AM
Unknown Object (File)
Sat, Apr 11, 6:21 AM
Unknown Object (File)
Thu, Apr 9, 2:05 AM
Unknown Object (File)
Tue, Apr 7, 3:10 PM
Unknown Object (File)
Sun, Apr 5, 5:13 PM
Unknown Object (File)
Sat, Apr 4, 11:40 AM
Unknown Object (File)
Mon, Mar 23, 5:11 PM
Unknown Object (File)
Mon, Mar 23, 6:25 AM
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