This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

freeBSD sets wrong netmask for non-ABC class IP addresses


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]