diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-09-16 12:43:16 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-09-22 08:17:42 +0200 |
commit | 1b2733b4129c132d598ec96a07b4f93386ad4e0f (patch) | |
tree | a87cc1c467153990ca437d035e57f2570bb2b53d /src/libudev/libudev-enumerate.c | |
parent | network/vxlan: avoid unneccesary temporary variables (diff) | |
download | systemd-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