From b7bd43fe9172311ce7e91c17bf5946061926e765 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Fri, 17 May 2013 13:32:52 +0000 Subject: [PATCH] do not flood logs with unrecognized network packets git-svn-id: svn://kolibrios.org@3517 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/eth_drv/ethernet.inc | 2 +- kernel/trunk/network/ip.inc | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/trunk/network/eth_drv/ethernet.inc b/kernel/trunk/network/eth_drv/ethernet.inc index d5c8b3c579..4834ce1912 100644 --- a/kernel/trunk/network/eth_drv/ethernet.inc +++ b/kernel/trunk/network/eth_drv/ethernet.inc @@ -506,7 +506,7 @@ eth_rx: cmp ax, ETHER_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] jmp .exit ; If not IP or ARP, ignore diff --git a/kernel/trunk/network/ip.inc b/kernel/trunk/network/ip.inc index e116da3a44..cf6e40d17c 100644 --- a/kernel/trunk/network/ip.inc +++ b/kernel/trunk/network/ip.inc @@ -215,27 +215,27 @@ local buffer_number dd ? .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 .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 .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 .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 .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 .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: inc dword[dumped_rx_count]