]>
Commit | Line | Data |
---|---|---|
1 | %{ | |
2 | #include <stddef.h> | |
3 | #include "conf-parser.h" | |
4 | #include "networkd-netdev.h" | |
5 | #include "networkd-netdev-tunnel.h" | |
6 | #include "networkd-netdev-bond.h" | |
7 | #include "networkd-netdev-macvlan.h" | |
8 | #include "network-internal.h" | |
9 | %} | |
10 | struct ConfigPerfItem; | |
11 | %null_strings | |
12 | %language=ANSI-C | |
13 | %define slot-name section_and_lvalue | |
14 | %define hash-function-name network_netdev_gperf_hash | |
15 | %define lookup-function-name network_netdev_gperf_lookup | |
16 | %readonly-tables | |
17 | %omit-struct-type | |
18 | %struct-type | |
19 | %includes | |
20 | %% | |
21 | Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(NetDev, match_host) | |
22 | Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(NetDev, match_virt) | |
23 | Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(NetDev, match_kernel) | |
24 | Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(NetDev, match_arch) | |
25 | NetDev.Description, config_parse_string, 0, offsetof(NetDev, description) | |
26 | NetDev.Name, config_parse_ifname, 0, offsetof(NetDev, ifname) | |
27 | NetDev.Kind, config_parse_netdev_kind, 0, offsetof(NetDev, kind) | |
28 | NetDev.MTUBytes, config_parse_iec_size, 0, offsetof(NetDev, mtu) | |
29 | NetDev.MACAddress, config_parse_hwaddr, 0, offsetof(NetDev, mac) | |
30 | VLAN.Id, config_parse_uint64, 0, offsetof(VLan, id) | |
31 | MACVLAN.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode) | |
32 | MACVTAP.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode) | |
33 | IPVLAN.Mode, config_parse_ipvlan_mode, 0, offsetof(IPVlan, mode) | |
34 | Tunnel.Local, config_parse_tunnel_address, 0, offsetof(Tunnel, local) | |
35 | Tunnel.Remote, config_parse_tunnel_address, 0, offsetof(Tunnel, remote) | |
36 | Tunnel.TOS, config_parse_unsigned, 0, offsetof(Tunnel, tos) | |
37 | Tunnel.TTL, config_parse_unsigned, 0, offsetof(Tunnel, ttl) | |
38 | Tunnel.DiscoverPathMTU, config_parse_bool, 0, offsetof(Tunnel, pmtudisc) | |
39 | Tunnel.Mode, config_parse_ip6tnl_mode, 0, offsetof(Tunnel, ip6tnl_mode) | |
40 | Tunnel.IPv6FlowLabel, config_parse_ipv6_flowlabel, 0, offsetof(Tunnel, ipv6_flowlabel) | |
41 | Tunnel.CopyDSCP, config_parse_bool, 0, offsetof(Tunnel, copy_dscp) | |
42 | Tunnel.EncapsulationLimit, config_parse_encap_limit, 0, offsetof(Tunnel, encap_limit) | |
43 | Peer.Name, config_parse_ifname, 0, offsetof(Veth, ifname_peer) | |
44 | Peer.MACAddress, config_parse_hwaddr, 0, offsetof(Veth, mac_peer) | |
45 | VXLAN.Id, config_parse_uint64, 0, offsetof(VxLan, id) | |
46 | VXLAN.Group, config_parse_vxlan_group_address, 0, offsetof(VxLan, group) | |
47 | VXLAN.TOS, config_parse_unsigned, 0, offsetof(VxLan, tos) | |
48 | VXLAN.TTL, config_parse_unsigned, 0, offsetof(VxLan, ttl) | |
49 | VXLAN.MacLearning, config_parse_bool, 0, offsetof(VxLan, learning) | |
50 | VXLAN.ARPProxy, config_parse_bool, 0, offsetof(VxLan, arp_proxy) | |
51 | VXLAN.L2MissNotification, config_parse_bool, 0, offsetof(VxLan, l2miss) | |
52 | VXLAN.L3MissNotification, config_parse_bool, 0, offsetof(VxLan, l3miss) | |
53 | VXLAN.RouteShortCircuit, config_parse_bool, 0, offsetof(VxLan, route_short_circuit) | |
54 | VXLAN.UDPCheckSum, config_parse_bool, 0, offsetof(VxLan, udpcsum) | |
55 | VXLAN.UDP6ZeroCheckSumRx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumrx) | |
56 | VXLAN.UDP6ZeroCheckSumTx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumtx) | |
57 | VXLAN.FDBAgeingSec, config_parse_sec, 0, offsetof(VxLan, fdb_ageing) | |
58 | VXLAN.GroupPolicyExtension, config_parse_bool, 0, offsetof(VxLan, group_policy) | |
59 | VXLAN.MaximumFDBEntries, config_parse_unsigned, 0, offsetof(VxLan, max_fdb) | |
60 | VXLAN.PortRange, config_parse_port_range, 0, 0 | |
61 | VXLAN.DestinationPort, config_parse_destination_port, 0, offsetof(VxLan, dest_port) | |
62 | Tun.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue) | |
63 | Tun.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue) | |
64 | Tun.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info) | |
65 | Tun.User, config_parse_string, 0, offsetof(TunTap, user_name) | |
66 | Tun.Group, config_parse_string, 0, offsetof(TunTap, group_name) | |
67 | Tap.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue) | |
68 | Tap.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue) | |
69 | Tap.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info) | |
70 | Tap.VNetHeader, config_parse_bool, 0, offsetof(TunTap, vnet_hdr) | |
71 | Tap.User, config_parse_string, 0, offsetof(TunTap, user_name) | |
72 | Tap.Group, config_parse_string, 0, offsetof(TunTap, group_name) | |
73 | Bond.Mode, config_parse_bond_mode, 0, offsetof(Bond, mode) | |
74 | Bond.TransmitHashPolicy, config_parse_bond_xmit_hash_policy, 0, offsetof(Bond, xmit_hash_policy) | |
75 | Bond.LACPTransmitRate, config_parse_bond_lacp_rate, 0, offsetof(Bond, lacp_rate) | |
76 | Bond.AdSelect, config_parse_bond_ad_select, 0, offsetof(Bond, ad_select) | |
77 | Bond.FailOverMACPolicy, config_parse_bond_fail_over_mac, 0, offsetof(Bond, fail_over_mac) | |
78 | Bond.ARPIPTargets, config_parse_arp_ip_target_address, 0, 0 | |
79 | Bond.ARPValidate, config_parse_bond_arp_validate, 0, offsetof(Bond, arp_validate) | |
80 | Bond.ARPAllTargets, config_parse_bond_arp_all_targets, 0, offsetof(Bond, arp_all_targets) | |
81 | Bond.PrimaryReselectPolicy, config_parse_bond_primary_reselect, 0, offsetof(Bond, primary_reselect) | |
82 | Bond.ResendIGMP, config_parse_unsigned, 0, offsetof(Bond, resend_igmp) | |
83 | Bond.PacketsPerSlave, config_parse_unsigned, 0, offsetof(Bond, packets_per_slave) | |
84 | Bond.GratuitousARP, config_parse_unsigned, 0, offsetof(Bond, num_grat_arp) | |
85 | Bond.AllSlavesActive, config_parse_unsigned, 0, offsetof(Bond, all_slaves_active) | |
86 | Bond.MinLinks, config_parse_unsigned, 0, offsetof(Bond, min_links) | |
87 | Bond.MIIMonitorSec, config_parse_sec, 0, offsetof(Bond, miimon) | |
88 | Bond.UpDelaySec, config_parse_sec, 0, offsetof(Bond, updelay) | |
89 | Bond.DownDelaySec, config_parse_sec, 0, offsetof(Bond, downdelay) | |
90 | Bond.ARPIntervalSec, config_parse_sec, 0, offsetof(Bond, arp_interval) | |
91 | Bond.LearnPacketIntervalSec, config_parse_sec, 0, offsetof(Bond, lp_interval) | |
92 | Bridge.HelloTimeSec, config_parse_sec, 0, offsetof(Bridge, hello_time) | |
93 | Bridge.MaxAgeSec, config_parse_sec, 0, offsetof(Bridge, max_age) | |
94 | Bridge.ForwardDelaySec, config_parse_sec, 0, offsetof(Bridge, forward_delay) |