From c287a04d4290d4d60c8023bcbfbe10e0cc00ac54 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Sun, 7 Oct 2012 13:23:30 +0000 Subject: [PATCH] UDP output now only updates stats if send didnt fail. git-svn-id: svn://kolibrios.org@2980 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/network/udp.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kernel/branches/net/network/udp.inc b/kernel/branches/net/network/udp.inc index 662443b584..60abea1d5f 100644 --- a/kernel/branches/net/network/udp.inc +++ b/kernel/branches/net/network/udp.inc @@ -274,10 +274,13 @@ UDP_output: mov [edi + UDP_header.Checksum], 0 UDP_checksum (edi-4), (edi-8) ; FIXME: IPv4 packet could have options.. - inc [UDP_PACKETS_TX] ; FIXME: correct device? - DEBUGF 1,"UDP_output: sending with device %x\n", ebx call [ebx + NET_DEVICE.transmit] + test eax, eax + jnz @f + inc [UDP_PACKETS_TX] ; FIXME: correct device? + @@: + ret .fail: