lib utils: fix family during af_bit_len calculation
Subsystems (2)
Andrew Vagin
Acked-byQuoted 9 lines
commit
f3a2ddc124e0("lib utils: Use helpers to get AF bit/byte len") used a wrong family or family of zero in the default case duringaf_bit_lencalculation causing ip route commands to fail with below errorError: an inet prefix is expected rather than "10.0.2.14/24".
Reported-by Sven-Haegar Koch <[email protected]>Signed-off-by Roopa Prabhu <[email protected]>
Acked-by Andrew Vagin <[email protected]>