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>
Thu, 18 Jul 2013 14:00:29 +0000 (16:00 +0200)
commit83faec5abe30796c9226819fe47cbabf3b375235
tree8906024f31c56fcfe0f841aae7bc32bd1754cb7a
parent065907b99d27f1ad02e6af890ee7698dc3bb42a6
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