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:
parent
7a3f823d26
commit
8e7829e1ab
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user