aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-11-08 12:18:21 +0100
committerKlement Sekera <ksekera@cisco.com>2017-11-08 12:18:21 +0100
commit6bd0bc347a5fcc2ca3d25105b2d8bb781e036c1b (patch)
tree8e3da267b13131bfeaa706e3389315d746c2eef4 /src/vnet/ip
parentc65fdbf34982b2444d14ef74e287b51786e8cc06 (diff)
punt: fix sendmsg() failure detection
Change-Id: Ia8941b7b90f14dd688aca215b2dae1cc5c8f4472 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vnet/ip')
-rw-r--r--src/vnet/ip/punt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ip/punt.c b/src/vnet/ip/punt.c
index 7b868099039..6a8f4513a3c 100644
--- 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);
}