]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: util: bore up action_a2n()
authorPhil Sutter <phil@nwl.cc>
Sat, 23 Jul 2016 11:28:08 +0000 (13:28 +0200)
committerStephen Hemminger <shemming@brocade.com>
Mon, 25 Jul 2016 15:10:43 +0000 (08:10 -0700)
commit53aadc5286261fecb6e994918db8371515f9dd99
tree8f6e2a533b0c8d8b3fa5dcf0e60f34ad361a19db
parent9ffc80b1e49c4264fb20851e179aaa8ec0bc0766
tc: util: bore up action_a2n()

It's a pitty this function is used nowhere, so let's polish it for use:

* Loop over branch names, makes it clear that every former conditional
  was exactly identical.
* Support 'pipe' branch name, too.
* Make number parsing optional.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tc/tc_util.c
tc/tc_util.h