Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19

From: Andi Kleen (ak@suse.de)
Date: Thu Sep 06 2001 - 14:05:23 EST


On Thu, Sep 06, 2001 at 02:51:24PM -0400, Wietse Venema wrote:
> > On Wed, Sep 05, 2001 at 05:23:26PM -0400, Wietse Venema wrote:
> > > On a more serious note, what portable primitives does Linux offer
> > > to look up all interface IP addresses and their corresponding
> > > netmasks?
> >
> > man rtnetlink 7
>
> It's not portable as you may believe.

The man pages are actually came years later than the code due to some accidents.
That doesn't change the existence of the code.

>
> [root@redhat52 /root]# man rtnetlink
> No manual entry for rtnetlink
>
> This was released only three years ago.
>
> But it does not matter. The code needs to be written anyway.
>
> Do you have more to share than RFTM? Pointers to code?

Most prominent example is iproute2. It should be included as source with any
recent linux distribution. Others are zebra or bird.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 07 2001 - 21:00:36 EST