mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 06:02:37 +01:00
netdev: Add netdev_get_iftype
This commit is contained in:
parent
1bd7baf44b
commit
1573bf7d99
@ -128,6 +128,11 @@ uint32_t netdev_get_ifindex(struct netdev *netdev)
|
||||
return netdev->index;
|
||||
}
|
||||
|
||||
uint32_t netdev_get_iftype(struct netdev *netdev)
|
||||
{
|
||||
return netdev->type;
|
||||
}
|
||||
|
||||
static void netdev_free(void *data)
|
||||
{
|
||||
struct netdev *netdev = data;
|
||||
|
@ -32,6 +32,7 @@ void netdev_set_linkmode_and_operstate(uint32_t ifindex,
|
||||
|
||||
const uint8_t *netdev_get_address(struct netdev *netdev);
|
||||
uint32_t netdev_get_ifindex(struct netdev *netdev);
|
||||
uint32_t netdev_get_iftype(struct netdev *netdev);
|
||||
|
||||
struct netdev *netdev_find(int ifindex);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user