do not flood logs with unrecognized network packets

git-svn-id: svn://kolibrios.org@3517 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2013-05-17 13:32:52 +00:00
parent 7a6a47ea05
commit b7bd43fe91
2 changed files with 7 additions and 7 deletions

View File

@ -506,7 +506,7 @@ eth_rx:
cmp ax, ETHER_ARP cmp ax, ETHER_ARP
je .is_arp ; It is ARP je .is_arp ; It is ARP
DEBUGF 1,"K : eth_rx - dumped (%u)\n", ax ; DEBUGF 1,"K : eth_rx - dumped (%u)\n", ax
inc [dumped_rx_count] inc [dumped_rx_count]
jmp .exit ; If not IP or ARP, ignore jmp .exit ; If not IP or ARP, ignore

View File

@ -215,27 +215,27 @@ local buffer_number dd ?
.dump.1: .dump.1:
DEBUGF 1, "K : ip_rx - dumped (checksum: 0x%x-0x%x)\n", dx, ax ; DEBUGF 1, "K : ip_rx - dumped (checksum: 0x%x-0x%x)\n", dx, ax
jmp .dump.x jmp .dump.x
.dump.2: .dump.2:
DEBUGF 1, "K : ip_rx - dumped (ip: %u.%u.%u.%u)\n", [ebx + IP_PACKET.DestinationAddress + 0]:1, [ebx + IP_PACKET.DestinationAddress + 1]:1, [ebx + IP_PACKET.DestinationAddress + 2]:1, [ebx + IP_PACKET.DestinationAddress + 3]:1 ; DEBUGF 1, "K : ip_rx - dumped (ip: %u.%u.%u.%u)\n", [ebx + IP_PACKET.DestinationAddress + 0]:1, [ebx + IP_PACKET.DestinationAddress + 1]:1, [ebx + IP_PACKET.DestinationAddress + 2]:1, [ebx + IP_PACKET.DestinationAddress + 3]:1
jmp .dump.x jmp .dump.x
.dump.3: .dump.3:
DEBUGF 1, "K : ip_rx - dumped (ihl: %u)\n", al ; DEBUGF 1, "K : ip_rx - dumped (ihl: %u)\n", al
jmp .dump.x jmp .dump.x
.dump.4: .dump.4:
DEBUGF 1, "K : ip_rx - dumped (ttl: %u)\n", [ebx + IP_PACKET.TimeToLive] ; DEBUGF 1, "K : ip_rx - dumped (ttl: %u)\n", [ebx + IP_PACKET.TimeToLive]
jmp .dump.x jmp .dump.x
.dump.5: .dump.5:
DEBUGF 1, "K : ip_rx - dumped (flags: 0x%x)\n", ax ; DEBUGF 1, "K : ip_rx - dumped (flags: 0x%x)\n", ax
jmp .dump.x jmp .dump.x
.dump.6: .dump.6:
DEBUGF 1, "K : ip_rx - dumped (proto: %u)\n", [ebx + IP_PACKET.Protocol]:1 ; DEBUGF 1, "K : ip_rx - dumped (proto: %u)\n", [ebx + IP_PACKET.Protocol]:1
.dump.x: .dump.x:
inc dword[dumped_rx_count] inc dword[dumped_rx_count]