]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/test-network-tables.c
Merge pull request #10606 from yuwata/udev-tests
[thirdparty/systemd.git] / src / network / test-network-tables.c
1 #include "dhcp6-internal.h"
2 #include "dhcp6-protocol.h"
3 #include "ethtool-util.h"
4 #include "netdev/bond.h"
5 #include "netdev/ipvlan.h"
6 #include "netdev/macvlan.h"
7 #include "netdev/tunnel.h"
8 #include "netlink-internal.h"
9 #include "networkd-link.h"
10 #include "networkd-network.h"
11 #include "networkd-util.h"
12 #include "test-tables.h"
13
14 int main(int argc, char **argv) {
15 test_table(address_family_boolean, ADDRESS_FAMILY_BOOLEAN);
16 test_table(bond_ad_select, NETDEV_BOND_AD_SELECT);
17 test_table(bond_arp_all_targets, NETDEV_BOND_ARP_ALL_TARGETS);
18 test_table(bond_arp_validate, NETDEV_BOND_ARP_VALIDATE);
19 test_table(bond_fail_over_mac, NETDEV_BOND_FAIL_OVER_MAC);
20 test_table(bond_lacp_rate, NETDEV_BOND_LACP_RATE);
21 test_table(bond_mode, NETDEV_BOND_MODE);
22 test_table(bond_primary_reselect, NETDEV_BOND_PRIMARY_RESELECT);
23 test_table(bond_xmit_hash_policy, NETDEV_BOND_XMIT_HASH_POLICY);
24 test_table(dhcp6_message_status, DHCP6_STATUS);
25 test_table_sparse(dhcp6_message_type, DHCP6_MESSAGE); /* enum starts from 1 */
26 test_table(dhcp_use_domains, DHCP_USE_DOMAINS);
27 test_table(duplex, DUP);
28 test_table(ip6tnl_mode, NETDEV_IP6_TNL_MODE);
29 test_table(ipv6_privacy_extensions, IPV6_PRIVACY_EXTENSIONS);
30 test_table(ipvlan_flags, NETDEV_IPVLAN_FLAGS);
31 test_table(link_operstate, LINK_OPERSTATE);
32 /* test_table(link_state, LINK_STATE); — not a reversible mapping */
33 test_table(lldp_mode, LLDP_MODE);
34 test_table(netdev_kind, NETDEV_KIND);
35 test_table(nl_union_link_info_data, NL_UNION_LINK_INFO_DATA);
36 test_table(radv_prefix_delegation, RADV_PREFIX_DELEGATION);
37 test_table(wol, WOL);
38
39 test_table_sparse(ipvlan_mode, NETDEV_IPVLAN_MODE);
40 test_table_sparse(macvlan_mode, NETDEV_MACVLAN_MODE);
41
42 return EXIT_SUCCESS;
43 }