mirror of
https://github.com/xcat2/xNBA.git
synced 2025-03-14 15:37:37 +00:00
[netdevice] Add debug message for unknown network-layer protocols
Suggested-by: Bill Lortz <Bill.Lortz@premier.org>
This commit is contained in:
parent
5538a38b9c
commit
f3335b83d4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user