Re: [iproute2] lib utils: fix family during af_bit_len calculation

From: Andrew Vagin <hidden>
Date: 2015-03-24 05:35:26

commit f3a2ddc124e0 ("lib utils: Use helpers to get AF bit/byte len")
used a wrong family or family of zero in the default case
during af_bit_len calculation causing ip route commands to
fail with below error

Error: an inet prefix is expected rather than "10.0.2.14/24".

Reported-by: Sven-Haegar Koch <redacted>
Signed-off-by: Roopa Prabhu <redacted>
Acked-by: Andrew Vagin <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help