[ECOS] freeBSD sets wrong netmask for non-ABC class IP addresses

Lambrecht Jürgen J.Lambrecht@TELEVIC.com
Fri Aug 7 07:19:00 GMT 2015


Hi,

The FreeBSD network stack does not accept non-ABC class IP addresses, 
meaning that netmasks must be on 8-bit boundaries.
(ok, maybe 4-bit works, I did not test that).
For the interface definition, it is possible to set the correct netmask 
at run time (because it is from from the static configuration).
For the routing table, it is not possible. (I can share the code if needed)

We have those isolated/private networks:
- 172.24.0.0/13 -> netmaks 255.248.0.0 -> accepted netmask: 255.255.0.0
- 80.0.0.0/5 -> netmaks 248.0.0.0 -> accepted netmask: 255.0.0.0

Would anybody know how to fix this?

Kind regards,
Jürgen

-- 
Jürgen Lambrecht
R&D Associate
Mobile: +32 499 644 531
Twitter: JGRLambrecht
Tel: +32 (0)51 303045    Fax: +32 (0)51 310670
http://www.televic-rail.com
Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium
Company number 0825.539.581 - RPR Kortrijk


More information about the Ecos-discuss mailing list