diff options
author | Michael Brown | 2009-03-26 17:14:24 +0100 |
---|---|---|
committer | Michael Brown | 2009-03-26 17:14:24 +0100 |
commit | f3335b83d42b328a95f76244329431026e32e779 (patch) | |
tree | 6b8eaebda47622b859417bd4db4879613c80463d /src/net/netdevice.c | |
parent | [pcnet32] Fix received packet corruption (diff) | |
download | ipxe-f3335b83d42b328a95f76244329431026e32e779.tar.gz ipxe-f3335b83d42b328a95f76244329431026e32e779.tar.xz ipxe-f3335b83d42b328a95f76244329431026e32e779.zip |
[netdevice] Add debug message for unknown network-layer protocols
Suggested-by: Bill Lortz <Bill.Lortz@premier.org>
Diffstat (limited to 'src/net/netdevice.c')
-rw-r--r-- | src/net/netdevice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c index 9e031497..b24fbfdc 100644 --- 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; } |