]> git.ipfire.org Git - thirdparty/iproute2.git/commit
lib utils: fix family during af_bit_len calculation
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 18 Mar 2015 02:18:28 +0000 (19:18 -0700)
committerStephen Hemminger <shemming@brocade.com>
Tue, 24 Mar 2015 22:03:35 +0000 (15:03 -0700)
commit106ca2779ebc0d6a17ce7fae073aa38cdbdae6bb
treea23536c54091ca532f9c2c28da6b780631d27c25
parent6f4cad912082998bc2a44316af5550eaf260605a
lib utils: fix family during af_bit_len calculation

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 <haegar@sdinet.de>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
lib/utils.c