Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315064
b: refs/heads/master
c: ad7eee9
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and David S. Miller committed Jul 11, 2012
1 parent 58d7d9b commit b89f32e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e044a651b9b7b1b33d8b7fdb2bb27e443f392083
refs/heads/master: ad7eee98bef92481581060801bdfd1b25a6106c0
11 changes: 11 additions & 0 deletions trunk/include/linux/etherdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,17 @@ static inline void random_ether_addr(u8 *addr)
addr [0] |= 0x02; /* set local assignment bit (IEEE802) */
}

/**
* eth_broadcast_addr - Assign broadcast address
* @addr: Pointer to a six-byte array containing the Ethernet address
*
* Assign the broadcast address to the given address array.
*/
static inline void eth_broadcast_addr(u8 *addr)
{
memset(addr, 0xff, ETH_ALEN);
}

/**
* eth_hw_addr_random - Generate software assigned random Ethernet and
* set device flag
Expand Down

0 comments on commit b89f32e

Please sign in to comment.