Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
punt: fix sendmsg() failure detection
[vpp.git]
/
src
/
vnet
/
ip
/
punt.c
diff --git
a/src/vnet/ip/punt.c
b/src/vnet/ip/punt.c
index
7b86809
..
6a8f451
100644
(file)
--- a/
src/vnet/ip/punt.c
+++ b/
src/vnet/ip/punt.c
@@
-415,7
+415,7
@@
udp46_punt_socket_inline (vlib_main_t * vm,
.msg_iovlen = vec_len (iovecs),
};
- if (sendmsg (pm->socket_fd, &msg, 0) < l)
+ if (sendmsg (pm->socket_fd, &msg, 0) <
(ssize_t)
l)
vlib_node_increment_counter (vm, node_index,
PUNT_ERROR_SOCKET_TX_ERROR, 1);
}