]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-netdev-gperf.gperf
networkd: netdev - introduce vtable for netdev kinds
[thirdparty/systemd.git] / src / network / networkd-netdev-gperf.gperf
CommitLineData
c0dda186
TG
1%{
2#include <stddef.h>
3#include "conf-parser.h"
3be1d7e0
TG
4#include "networkd-netdev.h"
5#include "networkd-netdev-tunnel.h"
6#include "networkd-netdev-bond.h"
7#include "networkd-netdev-macvlan.h"
c6f7c917 8#include "network-internal.h"
c0dda186
TG
9%}
10struct 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%%
edbb03e9
TG
21Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(NetDev, match_host)
22Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(NetDev, match_virt)
23Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(NetDev, match_kernel)
24Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(NetDev, match_arch)
c0dda186 25NetDev.Description, config_parse_string, 0, offsetof(NetDev, description)
af4e9e2c 26NetDev.Name, config_parse_ifname, 0, offsetof(NetDev, ifname)
c0dda186 27NetDev.Kind, config_parse_netdev_kind, 0, offsetof(NetDev, kind)
7951dea2 28NetDev.MTUBytes, config_parse_iec_size, 0, offsetof(NetDev, mtu)
96c90742 29NetDev.MACAddress, config_parse_hwaddr, 0, offsetof(NetDev, mac)
c0dda186 30VLAN.Id, config_parse_uint64, 0, offsetof(NetDev, vlanid)
fe6b2d55 31MACVLAN.Mode, config_parse_macvlan_mode, 0, offsetof(NetDev, macvlan_mode)
1324e3ae
SS
32Tunnel.Local, config_parse_tunnel_address, 0, offsetof(NetDev, local)
33Tunnel.Remote, config_parse_tunnel_address, 0, offsetof(NetDev, remote)
34Tunnel.TOS, config_parse_unsigned, 0, offsetof(NetDev, tos)
35Tunnel.TTL, config_parse_unsigned, 0, offsetof(NetDev, ttl)
a9f434cf 36Tunnel.DiscoverPathMTU, config_parse_bool, 0, offsetof(NetDev, tunnel_pmtudisc)
10142d75 37Peer.Name, config_parse_ifname, 0, offsetof(NetDev, ifname_peer)
96c90742 38Peer.MACAddress, config_parse_hwaddr, 0, offsetof(NetDev, mac_peer)
326cb406
SS
39VXLAN.Id, config_parse_uint64, 0, offsetof(NetDev, vxlanid)
40VXLAN.Group, config_parse_tunnel_address, 0, offsetof(NetDev, group)
41VXLAN.TOS, config_parse_unsigned, 0, offsetof(NetDev, tos)
42VXLAN.TTL, config_parse_unsigned, 0, offsetof(NetDev, ttl)
43VXLAN.MacLearning, config_parse_bool, 0, offsetof(NetDev, learning)
30ae9dfd
SS
44Tun.OneQueue, config_parse_bool, 0, offsetof(NetDev, one_queue)
45Tun.MultiQueue, config_parse_bool, 0, offsetof(NetDev, multi_queue)
46Tun.PacketInfo, config_parse_bool, 0, offsetof(NetDev, packet_info)
47Tun.User, config_parse_string, 0, offsetof(NetDev, user_name)
48Tun.Group, config_parse_string, 0, offsetof(NetDev, group_name)
49Tap.OneQueue, config_parse_bool, 0, offsetof(NetDev, one_queue)
50Tap.MultiQueue, config_parse_bool, 0, offsetof(NetDev, multi_queue)
51Tap.PacketInfo, config_parse_bool, 0, offsetof(NetDev, packet_info)
52Tap.User, config_parse_string, 0, offsetof(NetDev, user_name)
53Tap.Group, config_parse_string, 0, offsetof(NetDev, group_name)
fe8ac65b 54Bond.Mode, config_parse_bond_mode, 0, offsetof(NetDev, bond_mode)