]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/iproute.c
lib utils: Use helpers to get AF bit/byte len
authorVadim Kochan <vadim4j@gmail.com>
Sat, 28 Feb 2015 00:50:24 +0000 (02:50 +0200)
committerStephen Hemminger <shemming@brocade.com>
Sun, 15 Mar 2015 19:15:19 +0000 (12:15 -0700)
commitf3a2ddc124e09d3990b836e322ed39c76c35546e
tree8fd7213347b4263ecd94a1fc4d7111fae11e5f3d
parent2e7e805d0aac4dd7a3d66951e28c0e3f457781ae
lib utils: Use helpers to get AF bit/byte len

Added funcs to get AF_XXX len in bit/bytes and replace
places where switch(AF_XXX) is used for this.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
include/utils.h
ip/iproute.c
ip/iprule.c
lib/utils.c