From 963cfb6b627555c85e3f4cc871b2d9058075858f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 19 Feb 2014 23:10:41 +0000 Subject: disable replay attack warning when in rail mode --- src/uanytun.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uanytun.c b/src/uanytun.c index 392c055..3453a38 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -176,7 +176,8 @@ int process_sock_data(tun_device_t* dev, int fd, udp_t* sock, options_t* opt, pl int result = seq_win_check_and_add(seq_win, encrypted_packet_get_sender_id(encrypted_packet), encrypted_packet_get_seq_nr(encrypted_packet)); if(result > 0) { - log_printf(WARNING, "detected replay attack, discarding packet"); + if(!(sock->rail_mode_)) + log_printf(WARNING, "detected replay attack, discarding packet"); return 0; } else if(result < 0) { log_printf(ERROR, "memory error at sequence window"); -- cgit v1.2.3