We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6dd7d commit 10c3540Copy full SHA for 10c3540
src/syscalls/net.asm
@@ -138,6 +138,9 @@ b_net_rx:
138
; Call the driver poll function
139
call [rdx+nt_poll] ; Call driver poll function passing RDX as interface
140
141
+ cmp cx, 0 ; No data?
142
+ je b_net_rx_end ; If so, don't increment counters
143
+
144
; Increment interface counters
145
inc qword [rdx+nt_rx_packets]
146
add qword [rdx+nt_rx_bytes], rcx
0 commit comments