]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/test-network-tables.c
networkd: netdev - move to separate subdirectory
[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"
cf0fbc49 4#include "netlink-internal.h"
441e9ae4
TG
5#include "netdev/bond.h"
6#include "netdev/macvlan.h"
cf0fbc49 7#include "networkd.h"
86bbe5bf
ZJS
8#include "test-tables.h"
9
10int main(int argc, char **argv) {
11 test_table(bond_mode, NETDEV_BOND_MODE);
ccddd104 12 /* test_table(link_state, LINK_STATE); — not a reversible mapping */
86bbe5bf 13 test_table(link_operstate, LINK_OPERSTATE);
cb9fc36a 14 test_table(address_family_boolean, ADDRESS_FAMILY_BOOLEAN);
86bbe5bf
ZJS
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);
c4a5ddc9 22 test_table_sparse(ipvlan_mode, NETDEV_IPVLAN_MODE);
86bbe5bf
ZJS
23 test_table_sparse(dhcp6_message_type, DHCP6_MESSAGE);
24
25 return EXIT_SUCCESS;
26}