]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/test-network-tables.c
network: Use CMP() macro for comparison.
[thirdparty/systemd.git] / src / network / test-network-tables.c
CommitLineData
86bbe5bf
ZJS
1#include "dhcp6-internal.h"
2#include "dhcp6-protocol.h"
86bbe5bf 3#include "ethtool-util.h"
441e9ae4 4#include "netdev/bond.h"
23f53b99 5#include "netdev/ipvlan.h"
441e9ae4 6#include "netdev/macvlan.h"
018eaf74 7#include "netdev/tunnel.h"
279eadd9 8#include "netlink-internal.h"
23f53b99 9#include "networkd-link.h"
018eaf74 10#include "networkd-network.h"
23f53b99 11#include "networkd-util.h"
86bbe5bf
ZJS
12#include "test-tables.h"
13
14int main(int argc, char **argv) {
cb9fc36a 15 test_table(address_family_boolean, ADDRESS_FAMILY_BOOLEAN);
018eaf74
ZJS
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);
279eadd9 21 test_table(bond_mode, NETDEV_BOND_MODE);
018eaf74
ZJS
22 test_table(bond_primary_reselect, NETDEV_BOND_PRIMARY_RESELECT);
23 test_table(bond_xmit_hash_policy, NETDEV_BOND_XMIT_HASH_POLICY);
86bbe5bf 24 test_table(dhcp6_message_status, DHCP6_STATUS);
98310c71 25 test_table_sparse(dhcp6_message_type, DHCP6_MESSAGE); /* enum starts from 1 */
018eaf74 26 test_table(dhcp_use_domains, DHCP_USE_DOMAINS);
86bbe5bf 27 test_table(duplex, DUP);
018eaf74
ZJS
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);
279eadd9
ZJS
31 test_table(link_operstate, LINK_OPERSTATE);
32 /* test_table(link_state, LINK_STATE); — not a reversible mapping */
018eaf74 33 test_table(lldp_mode, LLDP_MODE);
279eadd9 34 test_table(netdev_kind, NETDEV_KIND);
86bbe5bf 35 test_table(nl_union_link_info_data, NL_UNION_LINK_INFO_DATA);
279eadd9 36 test_table(wol, WOL);
86bbe5bf 37
86bbe5bf 38 test_table_sparse(dhcp6_message_type, DHCP6_MESSAGE);
279eadd9
ZJS
39 test_table_sparse(ipvlan_mode, NETDEV_IPVLAN_MODE);
40 test_table_sparse(macvlan_mode, NETDEV_MACVLAN_MODE);
86bbe5bf
ZJS
41
42 return EXIT_SUCCESS;
43}