mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Alexey V. Yurchenko" <ayurchen@mail.emicnetworks.com>
To: linux-net@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: how to set multicast MAC ligitemately?
Date: Fri, 26 Sep 2003 21:53:26 +0300	[thread overview]
Message-ID: <20030926215326.23f7de24.ayurchen@mail.emicnetworks.com> (raw)


Hi, everybody

In view of include/linux/etherdevice.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.  The multicast
 * and FF:FF:... tests are combined into the single test "!(addr[0]&1)".
 *
 * Return true if the address is valid.
 */
static inline int is_valid_ether_addr( u8 *addr )
{
        const char zaddr[6] = {0,};
                                                                          
        return !(addr[0]&1) && memcmp( addr, zaddr, 6);
}
...

how it is possible to set up multicast MAC address legitemately if NIC driver resorts to use of this function. Why are multicast addresses forbidden and who is the right person to ask?

(I really do need to set a multicast MAC address, and if multicast MAC addresses exist, why are they forbidden?)

Regards,
Alex

             reply	other threads:[~2003-09-26 18:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-26 18:53 Alexey V. Yurchenko [this message]
2003-09-26 19:03 ` Stephen Hemminger
2003-09-27 13:04   ` Alexey V. Yurchenko
2003-09-27 13:23     ` Jeroen Massar
2003-09-27 13:40     ` Pekka Savola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030926215326.23f7de24.ayurchen@mail.emicnetworks.com \
    --to=ayurchen@mail.emicnetworks.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®