This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: freeBSD sets wrong netmask for non-ABC class IP addresses
- From: Lambrecht JÃrgen <J dot Lambrecht at TELEVIC dot com>
- To: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Cc: Deroo Stijn <S dot Deroo at TELEVIC dot com>
- Date: Wed, 2 Sep 2015 14:13:53 +0200
- Subject: Re: freeBSD sets wrong netmask for non-ABC class IP addresses
- Authentication-results: sourceware.org; auth=none
- References: <55C45BDE dot 1080101 at televic dot com>
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