network: Allow IFF_VNET_HDR to also be set for tun devices

f5f07dbf06 adds VnetHeader= for tap
devices, but the flag is also used for tun devices.
This adds VnetHeader= setting in [Tun] section.
This commit is contained in:
Yu Watanabe
2019-05-22 17:58:46 +09:00
parent 077f9abc3a
commit 75eed300a9
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -162,6 +162,7 @@ MACsecReceiveAssociation.Activate, config_parse_macsec_sa_activate,
Tun.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
Tun.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
Tun.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
Tun.VNetHeader, config_parse_bool, 0, offsetof(TunTap, vnet_hdr)
Tun.User, config_parse_string, 0, offsetof(TunTap, user_name)
Tun.Group, config_parse_string, 0, offsetof(TunTap, group_name)
Tap.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)