mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: "Alexey V. Yurchenko" <ayurchen@path.emicnetworks.com>
Cc: linux-net@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: how to set multicast MAC ligitemately?
Date: Fri, 26 Sep 2003 12:03:45 -0700	[thread overview]
Message-ID: <20030926120345.6668d96f.shemminger@osdl.org> (raw)
In-Reply-To: <20030926215326.23f7de24.ayurchen@mail.emicnetworks.com>

On Fri, 26 Sep 2003 21:53:26 +0300
"Alexey V. Yurchenko" <ayurchen@path.emicnetworks.com> wrote:

> 
> 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

Not interface should have a multicast MAC address. A multicast address
should only exist as a destination address, never a source.

  reply	other threads:[~2003-09-26 19:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-26 18:53 Alexey V. Yurchenko
2003-09-26 19:03 ` Stephen Hemminger [this message]
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=20030926120345.6668d96f.shemminger@osdl.org \
    --to=shemminger@osdl.org \
    --cc=ayurchen@path.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®