silccore: packet injection and stream wrap improvements
authorPekka Riikonen <priikone@silcnet.org>
Mon, 28 Apr 2014 19:31:35 +0000 (22:31 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 28 Apr 2014 19:31:35 +0000 (22:31 +0300)
commit705167687caeaa66c371dce7cc88719687337b9e
tree2d9c32814e8d43fa50b4de5d10a003a0464e4d2b
parent2d1796c19aaf7b3e1f07f95e0271e64fdea1da2f
silccore: packet injection and stream wrap improvements

Add silc_packet_stream_inject to allow injecting of packets to the
specified packet stream.

Add support for specifying the source and destination ids for the
wrapped packet stream allowing to use them in packet sending and using
them in packet reception to take only packets with the specified ids.

The semantics of CAN_WRITE and CAN_READ of wrapped packet stream coder
function has been changed to allow the coder to filter out packets it
does not want or to handle errors in coding.
lib/silccore/silcpacket.c
lib/silccore/silcpacket.h