bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On OpenBSD and if_freenameindex(3).


From: Mats Erik Andersson
Subject: Re: On OpenBSD and if_freenameindex(3).
Date: Tue, 21 Sep 2010 18:42:54 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

tisdag den 21 september 2010 klockan 15:52 skrev Simon Josefsson detta:
> Mats Erik Andersson <address@hidden> writes:
> 
> > tisdag den 21 september 2010 klockan 14:22 skrev Simon Josefsson detta:
> >> As an initial response to this problem, I'm installing a self check of
> >> the net/if.h interface.  See below.  Mats, if you could quote the
> >> compiler errors you get when building the self-check below on OpenBSD,
> >> that would be useful.  The next step is to see how gnulib can provide a
> >> replacement that works on various systems.  Perhaps OpenBSD isn't the
> >> only system not working here.
> >> 
> >> /Simon
> >
> > Quickest reply without need to test compile:
> >
> >    #include <sys/types.h>
> >    #include <sys/socket.h>
> >    #include <net/if.h>
> >
> > is the mandatory order for OpenBSD! Lest <config.h> knows that,
> > the test must augmented. Will return later for more info.
> 
> That's the first thing a gnulib net/if.h replacement header should
> provide then, since I believe the net/if.h header needs to be
> self-contained according to POSIX.
> 
> It would be interesting to see if the self tests works even if you make
> the above modification, though.  Also try running it with a command line
> parameter and check that it prints all the host interfaces on your
> machine.

My protocol "report_for_test_net_if.txt" is attached. I am not able
to compile the test into any working executable for OpenBSD 4.6.
The mishaps are due to "if_freenameindex".

In contrast, the original text works for Debian Squeeze, of course.

Mats E A

Attachment: report_for_test_net_if.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]