summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-lldp-rx.c
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: use -EBADF for fd initializationZbigniew Jędrzejewski-Szmek2022-12-191-1/+1
| | | | | | | | | | | | | | | | -1 was used everywhere, but -EBADF or -EBADFD started being used in various places. Let's make things consistent in the new style. Note that there are two candidates: EBADF 9 Bad file descriptor EBADFD 77 File descriptor in bad state Since we're initializating the fd, we're just assigning a value that means "no fd yet", so it's just a bad file descriptor, and the first errno fits better. If instead we had a valid file descriptor that became invalid because of some operation or state change, the other errno would fit better. In some places, initialization is dropped if unnecessary.
* tree-wide: use ASSERT_PTR moreDavid Tardon2022-09-131-2/+1
|
* time-util: assume CLOCK_BOOTTIME always existsLennart Poettering2022-03-281-2/+2
| | | | | | | | Let's raise our supported baseline a bit: CLOCK_BOOTTIME started to work with timerfd in kernel 3.15 (i.e. back in 2014), let's require support for it now. This will raise our baseline only modestly from 3.13 → 3.15.
* libsystemd-network: ignore -ENETDOWN or friends in recv()Yu Watanabe2021-12-091-1/+4
| | | | And this makes most errors in io events ignored.
* tree-wide: use ERRNO_IS_TRANSIENT()Yu Watanabe2021-11-301-1/+1
|
* libsystemd-network: drop _public_ attributeYu Watanabe2021-10-291-12/+12
| | | | No function in libsystemd-network is exposed yet.
* libsystemd-network: make sd_dhcp_client_get_ifname() or friends return ↵Yu Watanabe2021-09-291-4/+12
| | | | negative errno on error
* sd-lldp-rx: make lldp_rx_free() and lldp_neighbor_free() accept NULLYu Watanabe2021-09-281-1/+2
|
* sd-lldp-rx: sd_event should be attached when lldp_rx_start_timer() is calledYu Watanabe2021-09-281-3/+1
|
* sd-lldp-rx: do not enable timer event source in sd_lldp_rx_get_neighbors()Yu Watanabe2021-09-281-5/+1
| | | | It must be just a simple getter.
* sd-lldp-rx: use _cleanup_ attribute at one more placeYu Watanabe2021-09-281-5/+4
|
* sd-lldp-rx: add missing assertionsYu Watanabe2021-09-281-4/+9
|
* sd-lldp-rx: delay allocating hashmap and prioq to store neighborsYu Watanabe2021-09-281-12/+2
|
* sd-lldp-rx: ensure no event will be triggered after ↵Yu Watanabe2021-09-281-1/+2
| | | | sd_lldp_rx_detach_event() is called
* sd-lldp-rx: introduce sd_lldp_rx_is_running()Yu Watanabe2021-09-281-9/+12
|
* sd-lldp-rx: ignore all errors in processing datagramYu Watanabe2021-09-281-9/+8
|
* sd-lldp-rx: rename sd_lldp -> sd_lldp_rxYu Watanabe2021-09-271-159/+159
|
* sd-lldp: rename sd-lldp.[ch] -> sd-lldp-rx.[ch]Yu Watanabe2021-09-271-0/+523