]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ipaddress: accept symbolic names
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Jun 2023 15:51:53 +0000 (08:51 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Jun 2023 15:51:53 +0000 (08:51 -0700)
commit709063e8368aeed56fd5775c10d33ca4dc8990a5
tree2c677761bbef31b3fdd384ceab4ebff71dbb0574
parent64b9f34280b4fa5f8bf46bbc6c28605ef1aafd1f
ipaddress: accept symbolic names

The function rtnl_addproto_a2n() was defined but never used.
Use it to allow for symbolic names, and fix the function signatures
so protocol value is consistently __u8.

Fixes: bdb8d8549ed9 ("ip: Support IP address protocol")
Cc: petrm@nvidia.com
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/rt_names.h
ip/ipaddress.c
lib/rt_names.c