summaryrefslogtreecommitdiff
path: root/src/grp-network/test-network-tables.c
blob: 89c7591778b64b10aa1354f95b43465da06ec5f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "ethtool-util.h"
#include "networkd-netdev-bond.h"
#include "networkd-netdev-macvlan.h"
#include "networkd.h"
#include "sd-netlink/netlink-internal.h"
#include "systemd-network/dhcp6-internal.h"
#include "systemd-network/dhcp6-protocol.h"
#include "systemd-shared/test-tables.h"

int main(int argc, char **argv) {
        test_table(bond_mode, NETDEV_BOND_MODE);
        /* test_table(link_state, LINK_STATE);  — not a reversible mapping */
        test_table(link_operstate, LINK_OPERSTATE);
        test_table(address_family_boolean, ADDRESS_FAMILY_BOOLEAN);
        test_table(netdev_kind, NETDEV_KIND);
        test_table(dhcp6_message_status, DHCP6_STATUS);
        test_table(duplex, DUP);
        test_table(wol, WOL);
        test_table(nl_union_link_info_data, NL_UNION_LINK_INFO_DATA);

        test_table_sparse(macvlan_mode, NETDEV_MACVLAN_MODE);
        test_table_sparse(ipvlan_mode, NETDEV_IPVLAN_MODE);
        test_table_sparse(dhcp6_message_type, DHCP6_MESSAGE);

        return EXIT_SUCCESS;
}