mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 18:20:22 +01:00
platform: stop using private kernel tun device flags (bgo #740380)
The TUN_* flags are going to be deprecated upstream in the kernel so we might as well stop using them. https://lkml.org/lkml/2014/11/19/460 https://bugzilla.gnome.org/show_bug.cgi?id=740380
This commit is contained in:
parent
5338178d81
commit
5de8a0d3a7
1 changed files with 1 additions and 1 deletions
|
|
@ -2964,7 +2964,7 @@ tun_get_properties (NMPlatform *platform, int ifindex, NMPlatformTunProperties *
|
|||
#ifndef IFF_MULTI_QUEUE
|
||||
const int IFF_MULTI_QUEUE = 0x0100;
|
||||
#endif
|
||||
props->mode = ((flags & TUN_TYPE_MASK) == TUN_TUN_DEV) ? "tun" : "tap";
|
||||
props->mode = ((flags & (IFF_TUN | IFF_TAP)) == IFF_TUN) ? "tun" : "tap";
|
||||
props->no_pi = !!(flags & IFF_NO_PI);
|
||||
props->vnet_hdr = !!(flags & IFF_VNET_HDR);
|
||||
props->multi_queue = !!(flags & IFF_MULTI_QUEUE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue