diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-01-27 16:53:39 -0500 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2009-01-28 23:59:27 -0800 |
commit | 75edebe3011c963a7cd84be0f4a987477f2aaf89 (patch) | |
tree | 4be18e8688583de34f9d5b868c7d960678ea33f1 /board/bf537-stamp | |
parent | 268859338c0188eab1d0d3b867b7dad3c5cc734a (diff) | |
download | u-boot-75edebe3011c963a7cd84be0f4a987477f2aaf89.tar.gz u-boot-75edebe3011c963a7cd84be0f4a987477f2aaf89.tar.bz2 u-boot-75edebe3011c963a7cd84be0f4a987477f2aaf89.zip |
Move is_valid_ether_addr() to include/net.h
Import the is_valid_ether_addr() function from the Linux kernel.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'board/bf537-stamp')
-rw-r--r-- | board/bf537-stamp/bf537-stamp.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/board/bf537-stamp/bf537-stamp.c b/board/bf537-stamp/bf537-stamp.c index 7303f1b415..cec2b2633a 100644 --- a/board/bf537-stamp/bf537-stamp.c +++ b/board/bf537-stamp/bf537-stamp.c @@ -34,22 +34,6 @@ #include <asm/mach-common/bits/bootrom.h> #include <netdev.h> -/** - * is_valid_ether_addr - Determine if the given Ethernet address is valid - * @addr: Pointer to a six-byte array containing the Ethernet address - * - * Check that the Ethernet address (MAC) is not 00:00:00:00:00:00, is not - * a multicast address, and is not FF:FF:FF:FF:FF:FF. - * - * Return true if the address is valid. - */ -static inline int is_valid_ether_addr(const u8 * addr) -{ - /* FF:FF:FF:FF:FF:FF is a multicast address so we don't need to - * explicitly check for it here. */ - return !is_multicast_ether_addr(addr) && !is_zero_ether_addr(addr); -} - DECLARE_GLOBAL_DATA_PTR; #define POST_WORD_ADDR 0xFF903FFC |