All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Borkmann <dborkman@redhat.com>
To: Albert Krenz <albert.krenz87@googlemail.com>
Cc: netdev@vger.kernel.org
Subject: Re: How does the linux kernel select the MAC address for TAP devices?
Date: Tue, 17 Jun 2014 12:25:29 +0200	[thread overview]
Message-ID: <53A01799.5060304@redhat.com> (raw)
In-Reply-To: <CAPRaSD6_TUBLNJu3GC84FwWmPOqLnhgmoq61mZX03dJFM8cyrw@mail.gmail.com>

On 06/16/2014 10:00 AM, Albert Krenz wrote:
> As stated in the email subject: Where does the kernel get the used
> MAC-Adress for a newly create TAP device? Are they randomly generated
> or does it select one from a fixed pool of reserved MAC-Adresses?
>
> I have not found any official documentation about the selection of
> MAC-addresses for TAP-devices. Most sites like
> http://backreference.org/2010/03/26/tuntap-interface-tutorial/ state
> that the MAC addresses are auto-generated and can be changed. But they
> do not explain the generation rules.
>
> Does anyone know an official document (preferably from kernel.org)
> explaining the MAC selection process? Or is it only explained in the
> Source?

See: drivers/net/tun.c +936

      parent reply	other threads:[~2014-06-17 10:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-16  8:00 How does the linux kernel select the MAC address for TAP devices? Albert Krenz
2014-06-16 13:39 ` Vlad Yasevich
2014-06-17 10:25 ` Daniel Borkmann [this message]

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=53A01799.5060304@redhat.com \
    --to=dborkman@redhat.com \
    --cc=albert.krenz87@googlemail.com \
    --cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.