We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
b_net_rx
1 parent 33b1cb1 commit c0bef38Copy full SHA for c0bef38
src/syscalls/net.asm
@@ -100,10 +100,13 @@ b_net_tx_fail:
100
b_net_rx:
101
push rdx
102
103
+ mov cl, byte [os_net_icount] ; Get interface count
104
+ cmp cl, 0
105
+ je b_net_rx_end ; Bail out if there are no valid interfaces
106
+ dec cl ; Interfaces start at 0
107
+ cmp cl, dl
108
xor ecx, ecx
-
- cmp byte [os_net_icount], dl ; Check if interface is valid
- ja b_net_rx_end
109
+ ja b_net_rx_end ; Bail out if it was an invalid interface
110
111
shl edx, 7 ; Quick multiply by 128
112
add edx, net_table ; Add offset to net_table
0 commit comments