author: Simon Horman <horms@verge.net.au> 2013-03-28 13:38:25 +0900
committer: David S. Miller <davem@davemloft.net> 2013-03-28 01:20:42 -0400
commit: e5c5d22e8dcf7c2d430336cbf8e180bd38e8daf1
parent: 8b49a4c75965ed157e21450d23dcadd6b27c1aa3
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
index 56796330a162..4d565365e476 100644
--- a/drivers/firewire/net.c
+++ b/drivers/firewire/net.c
@@ -547,7 +547,7 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
if (memcmp(eth->h_dest, net->dev_addr, net->addr_len))
skb->pkt_type = PACKET_OTHERHOST;
}
- if (ntohs(eth->h_proto) >= 1536) {
+ if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) {
protocol = eth->h_proto;
} else {
rawp = (u16 *)skb->data;