projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eaf10c
)
netdev: New function netdev_nodev_get_etheraddr().
author
Ben Pfaff
<blp@nicira.com>
Mon, 2 Mar 2009 18:49:40 +0000
(10:49 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 2 Mar 2009 21:42:06 +0000
(13:42 -0800)
lib/netdev.c
patch
|
blob
|
history
lib/netdev.h
patch
|
blob
|
history
diff --git
a/lib/netdev.c
b/lib/netdev.c
index d46ab2d93780510f190fcee06e3e00a09a3271f1..230ed947c264f06b652fdd75d1eeab890cb33e4d 100644
(file)
--- a/
lib/netdev.c
+++ b/
lib/netdev.c
@@
-1116,6
+1116,14
@@
netdev_nodev_get_flags(const char *netdev_name, enum netdev_flags *flagsp)
}
return 0;
}
+
+int
+netdev_nodev_get_etheraddr(const char *netdev_name, uint8_t mac[6])
+{
+ init_netdev();
+
+ return get_etheraddr(netdev_name, mac, NULL);
+}
\f
struct netdev_monitor {
struct nl_sock *sock;
diff --git
a/lib/netdev.h
b/lib/netdev.h
index dd6174e240602a89178ff371cb1853563ed9846b..0081a600513472f2747f2ffe3c8b7f5fd2c77803 100644
(file)
--- a/
lib/netdev.h
+++ b/
lib/netdev.h
@@
-121,6
+121,7
@@
int netdev_get_stats(const struct netdev *, struct netdev_stats *);
void netdev_enumerate(struct svec *);
int netdev_nodev_get_flags(const char *netdev_name, enum netdev_flags *);
+int netdev_nodev_get_etheraddr(const char *netdev_name, uint8_t mac[6]);
/* Generic interface for monitoring network devices.
*