* value of dev->addr_assign_type
@ 2012-12-24 9:47 Jiri Pirko
0 siblings, 0 replies; only message in thread
From: Jiri Pirko @ 2012-12-24 9:47 UTC (permalink / raw)
To: netdev; +Cc: sassmann
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-24 9:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-24 9:47 value of dev->addr_assign_type Jiri Pirko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox