]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/test-network-tables.c
tree-wide: use mdash instead of a two minuses
[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 "netlink-internal.h"
5 #include "networkd-netdev-bond.h"
6 #include "networkd-netdev-macvlan.h"
7 #include "networkd.h"
8 #include "test-tables.h"
9
10 int main(int argc, char **argv) {
11 test_table(bond_mode, NETDEV_BOND_MODE);
12 /* test_table(link_state, LINK_STATE); — not a reversible mapping */
13 test_table(link_operstate, LINK_OPERSTATE);
14 test_table(address_family_boolean, ADDRESS_FAMILY_BOOLEAN);
15 test_table(netdev_kind, NETDEV_KIND);
16 test_table(dhcp6_message_status, DHCP6_STATUS);
17 test_table(duplex, DUP);
18 test_table(wol, WOL);
19 test_table(nl_union_link_info_data, NL_UNION_LINK_INFO_DATA);
20
21 test_table_sparse(macvlan_mode, NETDEV_MACVLAN_MODE);
22 test_table_sparse(ipvlan_mode, NETDEV_IPVLAN_MODE);
23 test_table_sparse(dhcp6_message_type, DHCP6_MESSAGE);
24
25 return EXIT_SUCCESS;
26 }