From: Jiri Pirko <jiri@resnulli.us>
To: netdev@vger.kernel.org
Cc: sassmann@redhat.com
Subject: value of dev->addr_assign_type
Date: Mon, 24 Dec 2012 10:47:30 +0100 [thread overview]
Message-ID: <20121224094730.GB1559@minipsycho.orion> (raw)
Hi Stefan/all.
Looking at possible values of dev->addr_assign_type I found out:
/* hardware address assignment types */
#define NET_ADDR_PERM 0 /* address is permanent (default) */
#define NET_ADDR_RANDOM 1 /* address is generated randomly */
#define NET_ADDR_STOLEN 2 /* address is stolen from other device */
By this it looks like dev->addr_assign_type value is always one of these 3.
But by the way the value is treated in dev_hw_addr_random() for example:
dev->addr_assign_type |= NET_ADDR_RANDOM;
It looks like NET_ADDR_* ought to be flags...
That confuses me.
Jiri
ps.: introduced in c1f79426e2df5ef96fe3e76de6c7606d15bf390b
reply other threads:[~2012-12-24 9:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20121224094730.GB1559@minipsycho.orion \
--to=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=sassmann@redhat.com \
/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