]> git.ipfire.org Git - thirdparty/strongswan.git/commit
duplicheck: use a stream service to accept client connections
authorMartin Willi <martin@revosec.ch>
Mon, 1 Jul 2013 09:19:01 +0000 (11:19 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 17 Jul 2013 14:55:49 +0000 (16:55 +0200)
commitcb8cb7d5fd19377675a6817458b35f965fb239b4
tree513931b122f98ae49e52f518c65c723da9f8c81e
parent5aa0083e4447e1fe7a15315a8d121b45bd6f1446
duplicheck: use a stream service to accept client connections

As we can't use SOCK_SEQPACKET over TCP, we now have to provide message
boundaries ourselves. We do this by appending a 16-bit length header to each
sent duplicate identity.
src/libcharon/plugins/duplicheck/Makefile.am
src/libcharon/plugins/duplicheck/duplicheck.c
src/libcharon/plugins/duplicheck/duplicheck_msg.h [new file with mode: 0644]
src/libcharon/plugins/duplicheck/duplicheck_notify.c