summaryrefslogtreecommitdiff
path: root/src/network/networkd.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-03-24 00:07:46 +0100
committerTom Gundersen <teg@jklm.no>2014-03-24 16:59:30 +0100
commitd39edfc72f9296078a18014627bf0a2543b60627 (patch)
tree8bc4b060769d43e8e519652dcf2f4ef7cee14733 /src/network/networkd.h
parent3dd215e056ee9ff23175eca66686ff9b7a566dbf (diff)
networkd: netdev - verify that newlink messages has the expected kind
We match 'newlink' messages with expected netdev's based on their names. Now also make sure that the receieved link has the expected kind.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r--src/network/networkd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h
index 239ef1cd38..8144031a99 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -264,7 +264,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(NetDev*, netdev_free);
#define _cleanup_netdev_free_ _cleanup_(netdev_freep)
int netdev_get(Manager *manager, const char *name, NetDev **ret);
-int netdev_set_ifindex(NetDev *netdev, int ifindex);
+int netdev_set_ifindex(NetDev *netdev, sd_rtnl_message *newlink);
int netdev_enslave(NetDev *netdev, Link *link, sd_rtnl_message_handler_t cb);
const char *netdev_kind_to_string(NetDevKind d) _const_;