3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-27 10:52:47 +01:00

netdev: Add netdev_get_address

This commit is contained in:
Denis Kenzior 2016-06-01 15:27:39 -05:00
parent 7a3f823d26
commit 8e7829e1ab
2 changed files with 6 additions and 0 deletions

View File

@ -117,6 +117,11 @@ void netdev_set_linkmode_and_operstate(uint32_t ifindex,
l_free(rtmmsg);
}
const uint8_t *netdev_get_address(struct netdev *netdev)
{
return netdev->addr;
}
uint32_t netdev_get_ifindex(struct netdev *netdev)
{
return netdev->index;

View File

@ -30,6 +30,7 @@ void netdev_set_linkmode_and_operstate(uint32_t ifindex,
uint8_t linkmode, uint8_t operstate,
netdev_command_func_t cb, void *user_data);
const uint8_t *netdev_get_address(struct netdev *netdev);
uint32_t netdev_get_ifindex(struct netdev *netdev);
bool netdev_init(struct l_genl_family *in);