Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327842
b: refs/heads/master
c: 6d57e90
h: refs/heads/master
v: v3
  • Loading branch information
Duan Jiong authored and David S. Miller committed Sep 10, 2012
1 parent 8049bad commit d36e456
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: 82346a7b6a14793a48cc7a0692a007daf0843f99
refs/heads/master: 6d57e9078e880a3dd232d579f42ac437a8f1ef7b
11 changes: 11 additions & 0 deletions trunk/include/linux/etherdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@ static inline void eth_broadcast_addr(u8 *addr)
memset(addr, 0xff, ETH_ALEN);
}

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

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

0 comments on commit d36e456

Please sign in to comment.