Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256048
b: refs/heads/master
c: 2effca3
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Jul 5, 2011
1 parent f6130ed commit ff0313f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abfc89c7b5347b869d1c48ddae027caf91a2300d
refs/heads/master: 2effca33194749cc3d5c2fdae52dcd8a7d6556e5
6 changes: 3 additions & 3 deletions trunk/drivers/net/depca.c
Original file line number Diff line number Diff line change
Expand Up @@ -1073,13 +1073,13 @@ static int depca_rx(struct net_device *dev)
i = DEPCA_PKT_STAT_SZ;
}
}
if (buf[0] & 0x01) { /* Multicast/Broadcast */
if ((*(s16 *) & buf[0] == -1) && (*(s16 *) & buf[2] == -1) && (*(s16 *) & buf[4] == -1)) {
if (is_multicast_ether_addr(buf)) {
if (is_broadcast_ether_addr(buf)) {
lp->pktStats.broadcast++;
} else {
lp->pktStats.multicast++;
}
} else if ((*(s16 *) & buf[0] == *(s16 *) & dev->dev_addr[0]) && (*(s16 *) & buf[2] == *(s16 *) & dev->dev_addr[2]) && (*(s16 *) & buf[4] == *(s16 *) & dev->dev_addr[4])) {
} else if (compare_ether_addr(buf, dev->dev_addr) == 0) {
lp->pktStats.unicast++;
}

Expand Down

0 comments on commit ff0313f

Please sign in to comment.