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

Lambrecht Jürgen J.Lambrecht@TELEVIC.com
Wed Sep 2 12:14:00 GMT 2015


To re-phrase my question:

is CIDR (classless inter-domain routing) supported by the eCos FreeBSD 
stack?
In my experience it is *not*, because we use both /13 and /5 networks 
and both are not fully functional !
So howto enable CIDR in eCos?

Kind regards,
Jürgen

On 08/07/2015 09:18 AM, Lambrecht Jürgen wrote:
> 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