summaryrefslogtreecommitdiffstats
path: root/src/libudev/libudev-enumerate.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-09-16 12:43:16 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-09-22 08:17:42 +0200
commit1b2733b4129c132d598ec96a07b4f93386ad4e0f (patch)
treea87cc1c467153990ca437d035e57f2570bb2b53d /src/libudev/libudev-enumerate.c
parentnetwork/vxlan: avoid unneccesary temporary variables (diff)
downloadsystemd-1b2733b4129c132d598ec96a07b4f93386ad4e0f.tar.xz
systemd-1b2733b4129c132d598ec96a07b4f93386ad4e0f.zip
shared/ip-procotol-list: generalize and rework parse_ip_protocol()
Optionally, accept protocols that don't have a known name. Avoid any allocations in the common case. Return more granular error codes: -ERANGE for negative values, -EOPNOTSUPP if the protocol is a valid number, but we don't know the protocol, and -EINVAL only if it's not a numerical string.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions