aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/ipv4.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 465df45..5bb48f6 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -347,6 +347,8 @@ static int ipv4_tx ( struct io_buffer *iobuf,
ll_dest ) ) != 0 ) {
DBG ( "IPv4 has no link-layer address for %s: %s\n",
inet_ntoa ( next_hop ), strerror ( rc ) );
+ /* Record error for diagnosis */
+ netdev_tx_err ( netdev, iob_disown ( iobuf ), rc );
goto err;
}