summaryrefslogtreecommitdiff
path: root/src/network/networkd-json.c
Commit message (Collapse)AuthorAgeFilesLines
* network: Show network and link file dropins in networkctl statusDaan De Meyer2023-01-121-1/+12
| | | | Fixes #24428
* network: rename Link.sd_device -> Link.devYu Watanabe2022-07-231-2/+2
|
* strv: make iterator in STRV_FOREACH() declaread in the loopYu Watanabe2022-03-191-2/+1
| | | | This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
* network: rename SetupState to AdministrativeStateLaserEyess2021-12-101-1/+1
| | | | | | This is more consistent with the terminology used elsewhere. In particular it is consistent with the name of the property exposed over dbus for the link state.
* network: json: add src address when its prefix length is non-zeroYu Watanabe2021-12-091-3/+3
| | | | | | This should not change anything. Just for consistency with route_set_netlink_message(), which sets RTA_SRC attribute when prefix length is non-zero.
* network: json: add missing initializationYu Watanabe2021-11-301-1/+1
| | | | Fixes CID#1466513.
* network: json: append DNS misc settingsYu Watanabe2021-11-261-0/+107
|
* network: json: append DNSSEC negative trust anchorsYu Watanabe2021-11-261-0/+62
|
* network: json: append domainsYu Watanabe2021-11-261-0/+160
|
* network: json: append SIP server informationYu Watanabe2021-11-261-0/+59
|
* network: json: append NTP server informationYu Watanabe2021-11-261-0/+164
|
* network: json: append DNS server informationYu Watanabe2021-11-261-0/+170
|
* network: json: add several entries for wait-onlineYu Watanabe2021-11-261-1/+9
|
* network: json: add more link informationYu Watanabe2021-11-251-1/+29
|
* network: json: append routing policy rule informationYu Watanabe2021-11-251-0/+108
|
* network: json: append neighbor informationYu Watanabe2021-11-251-0/+68
|
* network: json: append nexthop informationYu Watanabe2021-11-251-0/+133
|
* network: json: append route informationYu Watanabe2021-11-251-1/+129
|
* network: json: append address informationYu Watanabe2021-11-251-0/+87
|
* network: json: split manager_build_json() into twoYu Watanabe2021-11-251-1/+5
|
* network: json: make {network,device}_build_json() accept NULLYu Watanabe2021-11-251-22/+24
|
* network: json: use new building json macrosYu Watanabe2021-11-251-17/+17
|
* shared/json: use int64_t instead of intmax_tZbigniew Jędrzejewski-Szmek2021-11-181-1/+1
| | | | | | | | | | | We were already asserting that the intmax_t and uintmax_t types are the same as int64_t and uint64_t. Pretty much everywhere in the code base we use the latter types. In principle intmax_t could be something different on some new architecture, and then the code would fail to compile or behave differently. We actually do not want the code to behave differently on those architectures, because that'd break interoperability. So let's just use int64_t/uint64_t since that's what we indend to use.
* netif-util: rename link_get_type_string() -> net_get_type_string()Yu Watanabe2021-11-091-1/+1
|
* netif-util: move several functions from network-util.[ch] to ↵Yu Watanabe2021-11-091-1/+1
| | | | | | | shared/netif-util.[ch] These functions are not relevant to sd-network, and only used by networkd, networkctl, and udevd.
* network: rename Manager::links -> Manager::links_by_indexYu Watanabe2021-07-011-2/+2
| | | | This also renames link_get() -> link_get_by_index().
* network: add an online state for links and managerAlvin Šipraga2021-05-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new state of type LinkOnlineState which indicates whether a link is online or not. The state is also used by networkd's manager to expose the overall online state of the system. The possible states are: offline the link (or system) is offline partial at least one required link is online (see below) online all required links are online For links, a link is defined to be "online" if: - it is managed; and - its operational state is within the range defined by RequiredForOnline=; and - it has an IPv4 address if RequiredFamilyForOnline=ipv4 or =both; and - it has an IPv6 address if RequiredFamilyForOnline=ipv6 or =both. A link is defined to be "offline" if: - it is managed; and - it is not online, i.e. its operational state is not within the range defined by RequiredForOnline=, and/or it is missing an IP address in a required address family. Otherwise, the link online state is undefined (represented internally as _LINK_ONLINE_STATUS_INVALID or -EINVAL). Put another way, networkd will only offer a meaningful online state for managed links where RequiredForOnline=yes. For the manager, the online state is a function of the online state of all links which are requried for online, i.e. RequiredForOnline=yes. If all required links are online, then the manager online state is defined to be "online". If at least one of the required links is online, then the manager online state is defined to be "partial". If none of the required links are online, then the manager online state is defined to be "offline". If there are no managed links, or RequiredForOnline=no for all managed links, then the manager online state is undefined as above. The purpose of the "partial" state is analogous to the --any switch in systemd-networkd-wait-online.service(8). For example, a required link which lacks a carrier on boot will not force the overall (manager) online state to "offline" if there is an alternative link available.
* network: introduce Describe() method for manager and linksYu Watanabe2021-05-141-0/+135