From 7a726a2dd1a8fbba7e5c2899ed07dfd65ab101f5 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Thu, 25 Jan 2001 02:06:38 +0000 Subject: [PATCH] Pass up errors returned by dummynet. The same should be done with divert. --- sys/netinet/ip_output.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index fb8669c0261..4eff3752fb7 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -494,9 +494,9 @@ sendit: * XXX note: if the ifp or ro entry are deleted * while a pkt is in dummynet, we are in trouble! */ - dummynet_io(off & 0xffff, DN_TO_IP_OUT, m,ifp,ro,dst,rule, - flags); - goto done; + error = dummynet_io(off & 0xffff, DN_TO_IP_OUT, m, + ifp, ro, dst, rule, flags); + goto done; } #endif #ifdef IPDIVERT