3 #include "conf-parser.h"
5 #include "network-internal.h"
10 %define slot-name section_and_lvalue
11 %define hash-function-name network_netdev_gperf_hash
12 %define lookup-function-name network_netdev_gperf_lookup
18 Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(NetDev, match_host)
19 Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(NetDev, match_virt)
20 Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(NetDev, match_kernel)
21 Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(NetDev, match_arch)
22 NetDev.Description, config_parse_string, 0, offsetof(NetDev, description)
23 NetDev.Name, config_parse_ifname, 0, offsetof(NetDev, ifname)
24 NetDev.Kind, config_parse_netdev_kind, 0, offsetof(NetDev, kind)
25 NetDev.MTUBytes, config_parse_iec_size, 0, offsetof(NetDev, mtu)
26 NetDev.MACAddress, config_parse_hwaddr, 0, offsetof(NetDev, mac)
27 VLAN.Id, config_parse_uint64, 0, offsetof(NetDev, vlanid)
28 MACVLAN.Mode, config_parse_macvlan_mode, 0, offsetof(NetDev, macvlan_mode)
29 Tunnel.Local, config_parse_tunnel_address, 0, offsetof(NetDev, local)
30 Tunnel.Remote, config_parse_tunnel_address, 0, offsetof(NetDev, remote)
31 Tunnel.TOS, config_parse_unsigned, 0, offsetof(NetDev, tos)
32 Tunnel.TTL, config_parse_unsigned, 0, offsetof(NetDev, ttl)
33 Tunnel.DiscoverPathMTU, config_parse_bool, 0, offsetof(NetDev, tunnel_pmtudisc)
34 Peer.Name, config_parse_ifname, 0, offsetof(NetDev, ifname_peer)
35 Peer.MACAddress, config_parse_hwaddr, 0, offsetof(NetDev, mac_peer)
36 VXLAN.Id, config_parse_uint64, 0, offsetof(NetDev, vxlanid)
37 VXLAN.Group, config_parse_tunnel_address, 0, offsetof(NetDev, group)
38 VXLAN.TOS, config_parse_unsigned, 0, offsetof(NetDev, tos)
39 VXLAN.TTL, config_parse_unsigned, 0, offsetof(NetDev, ttl)
40 VXLAN.MacLearning, config_parse_bool, 0, offsetof(NetDev, learning)