diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-21 08:31:57 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-21 18:12:39 +0200 |
commit | 1bf49198b5ce8c5a68d32b722497bf22be2b1f8b (patch) | |
tree | c34c857c27c7025d18426cbeb5d34db5c6c91512 /src/network/networkctl-dump-util.h | |
parent | Merge pull request #33498 from DaanDeMeyer/btrfs (diff) | |
download | systemd-1bf49198b5ce8c5a68d32b722497bf22be2b1f8b.tar.xz systemd-1bf49198b5ce8c5a68d32b722497bf22be2b1f8b.zip |
networkctl: split networkctl.c into small pieces
No functional change, just refactoring.
Diffstat (limited to 'src/network/networkctl-dump-util.h')
-rw-r--r-- | src/network/networkctl-dump-util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/network/networkctl-dump-util.h b/src/network/networkctl-dump-util.h new file mode 100644 index 0000000000..c4dfae9a46 --- /dev/null +++ b/src/network/networkctl-dump-util.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +#include "sd-dhcp-lease.h" +#include "sd-hwdb.h" +#include "sd-netlink.h" + +#include "ether-addr-util.h" +#include "format-table.h" + +int dump_list(Table *table, const char *key, char * const *l); +int ieee_oui(sd_hwdb *hwdb, const struct ether_addr *mac, char **ret); +int dump_gateways(sd_netlink *rtnl, sd_hwdb *hwdb, Table *table, int ifindex); +int dump_addresses(sd_netlink *rtnl, sd_dhcp_lease *lease, Table *table, int ifindex); |