Branch: refs/heads/fixes
Home: https://github.com/kronosnet/kronosnet
Commit: 70506373f87193777a4c6ff336a9621801544420
https://github.com/kronosnet/kronosnet/commit/70506373f87193777a4c6ff336a96…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2017-10-17 (Tue, 17 Oct 2017)
Changed paths:
M libknet/transport_udp.c
Log Message:
-----------
[udp] fix incorrect return code
UDP TX is tricky and racy and in theory TX never fails, as UDP is allowed
to drop packets internally anyway.
In some race condition situations, we can endup in a situation where:
- thread X attempts to send a packet
- socket receives an ICMP back (for whatever reasons) generated
by some other random thread/packet combo
- thread X detects an error in TX and decode the error (correct)
pre patch:
- thread X would treat that as error and drop the packet
post patch:
- thread X should simply resend the packet
simply also the ordering of parsing socket error code to make it easier to read
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Branch: refs/heads/master
Home: https://github.com/kronosnet/kronosnet
Commit: 535a4bf7577fef9a64b469b61db4886fedfe2a76
https://github.com/kronosnet/kronosnet/commit/535a4bf7577fef9a64b469b61db48…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2017-10-16 (Mon, 16 Oct 2017)
Changed paths:
M libknet/tests/test-common.c
M libknet/transport_sctp.c
M libknet/transport_udp.c
M libtap/libtap.c
M poc-code/access-list/ipcheck.c
M poc-code/access-list/test_ipcheck.c
Log Message:
-----------
[global] use memmove instead of memcpy
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>