Browse Source

[netdevice] Add debug message for unknown network-layer protocols

Suggested-by: Bill Lortz <Bill.Lortz@premier.org>
tags/v0.9.8
Michael Brown 15 years ago
parent
commit
f3335b83d4
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/net/netdevice.c

+ 4
- 2
src/net/netdevice.c View File

@@ -533,10 +533,12 @@ int net_rx ( struct io_buffer *iobuf, struct net_device *netdev,
533 533
 
534 534
 	/* Hand off to network-layer protocol, if any */
535 535
 	for_each_table_entry ( net_protocol, NET_PROTOCOLS ) {
536
-		if ( net_protocol->net_proto == net_proto ) {
536
+		if ( net_protocol->net_proto == net_proto )
537 537
 			return net_protocol->rx ( iobuf, netdev, ll_source );
538
-		}
539 538
 	}
539
+
540
+	DBGC ( netdev, "NETDEV %p unknown network protocol %04x\n",
541
+	       netdev, ntohs ( net_proto ) );
540 542
 	free_iob ( iobuf );
541 543
 	return 0;
542 544
 }

Loading…
Cancel
Save