summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/sd-lldp-tx.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sd-lldp-tx: insert missing empty lineYu Watanabe2024-08-161-0/+1
|
* 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-3/+1
|
* Fix placement of TTL TLV in LLDP transmitMatthijs van Duin2022-05-041-9/+18
| | | | | | | | | The LLDP spec (IEEE 802.1AB) requires the three mandatory TLVs (Chassis ID, Port ID, and TTL) to be the first three TLVs in the packet, in that specific order, whereas systemd put the TTL near the end of the packet. This violation caused the ethernet switch in our office to discard these packets as malformed, and Wireshark's packet parser also chokes on them.
* time-util: assume CLOCK_BOOTTIME always existsLennart Poettering2022-03-281-1/+1
| | | | | | | | 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.
* sd-lldp-tx: drop unused and useless functionYu Watanabe2021-11-011-6/+0
| | | | | sd-lldp-tx does not call any callback function. So, the function is mostly useless.
* libsystemd-network: make sd_dhcp_client_get_ifname() or friends return ↵Yu Watanabe2021-09-281-9/+21
| | | | negative errno on error
* sd-lldp-tx: introduce sd-lldp-txYu Watanabe2021-09-271-0/+615