Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12240
b: refs/heads/master
c: 2407534
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and Arnaldo Carvalho de Melo committed Nov 2, 2005
1 parent 1a4a192 commit 950e2ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 450b5b18983cc15f4d27bd3f62901e02281e818b
refs/heads/master: 2407534f8be8015d585104bcc4374870b6b70fe7
3 changes: 1 addition & 2 deletions trunk/include/linux/etherdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ static inline int is_multicast_ether_addr(const u8 *addr)

static inline int is_broadcast_ether_addr(const u8 *addr)
{
return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) &&
(addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
return (addr[0] & addr[1] & addr[2] & addr[3] & addr[4] & addr[5]) == 0xff;
}

/**
Expand Down

0 comments on commit 950e2ea

Please sign in to comment.