http://git.etherboot.org
/
people
/
asdlkf
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5538a38
)
[netdevice] Add debug message for unknown network-layer protocols
author
Michael Brown
<mcb30@etherboot.org>
Thu, 26 Mar 2009 16:14:24 +0000
(16:14 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Thu, 26 Mar 2009 16:14:24 +0000
(16:14 +0000)
Suggested-by: Bill Lortz <Bill.Lortz@premier.org>
src/net/netdevice.c
patch
|
blob
|
history
diff --git
a/src/net/netdevice.c
b/src/net/netdevice.c
index
9e03149
..
b24fbfd
100644
(file)
--- a/
src/net/netdevice.c
+++ b/
src/net/netdevice.c
@@
-533,10
+533,12
@@
int net_rx ( struct io_buffer *iobuf, struct net_device *netdev,
/* Hand off to network-layer protocol, if any */
for_each_table_entry ( net_protocol, NET_PROTOCOLS ) {
- if ( net_protocol->net_proto == net_proto )
{
+ if ( net_protocol->net_proto == net_proto )
return net_protocol->rx ( iobuf, netdev, ll_source );
- }
}
+
+ DBGC ( netdev, "NETDEV %p unknown network protocol %04x\n",
+ netdev, ntohs ( net_proto ) );
free_iob ( iobuf );
return 0;
}