]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/fou-tunnel: simplify parsing of protocol number
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 16 Sep 2023 10:48:07 +0000 (12:48 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Sep 2023 06:17:42 +0000 (08:17 +0200)
commita893c121edcab567cabf17184a1ae041d0ce2468
treeecb8e6a889f483eb02beae36b4d39dfb87459add
parent1b2733b4129c132d598ec96a07b4f93386ad4e0f
network/fou-tunnel: simplify parsing of protocol number

Previously, we would call parse_ip_protocol(), which internally calls
safe_atoi(), and then call safe_atou(). This isn't terrible, but it's also
slightly confusing. Use parse_ip_protocol_full() to avoid the second call.
src/network/netdev/fou-tunnel.c