Commit 753ca703 authored by Pekka Pessi's avatar Pekka Pessi

test_nat: remove extra error messages

parent 834923ea
......@@ -655,7 +655,8 @@ static int new_udp(struct nat *nat, su_wait_t *wait, struct binding *dummy)
n = su_recvfrom(nat->udp_socket, nat->buffer, sizeof nat->buffer, 0,
from, &fromlen);
if (n < 0) {
su_perror("new_udp: recvfrom");
if (errno != EAGAIN && errno != EWOULDBLOCK && errno != ECONNREFUSED)
su_perror("new_udp: recvfrom");
return 0;
}
......@@ -688,7 +689,8 @@ static int udp_in_to_out(struct nat *nat, su_wait_t *wait, struct binding *b)
n = su_recv(b->in_socket, nat->buffer, sizeof nat->buffer, 0);
if (n == -1) {
su_perror("udp_in_to_out: recv");
if (errno != EAGAIN && errno != EWOULDBLOCK && errno != ECONNREFUSED)
su_perror("udp_in_to_out: recv");
return 0;
}
......@@ -730,7 +732,8 @@ static int udp_out_to_in(struct nat *nat, su_wait_t *wait, struct binding *b)
n = su_recv(b->out_socket, nat->buffer, sizeof nat->buffer, 0);
if (n < 0) {
su_perror("udp_out_to_out: recv");
if (errno != EAGAIN && errno != EWOULDBLOCK && errno != ECONNREFUSED)
su_perror("udp_out_to_in: recv");
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment