bug-inetutils
[Top][All Lists]
Advanced

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

if_config(if_index)


From: Alain Magloire
Subject: if_config(if_index)
Date: Fri, 6 Jul 2001 14:14:48 -0400 (EDT)

Bonjour

  The latest change in if_config does not work for me.
The problem is that on Linux(at least my GNU/linux box)

SIOCGIFNDEX is define
but 
#define ifr_ifindex     ifr_ifru.ifru_ivalue    /* interface index      */

Not ifr_index as the define is in system.h

But on a Solaris box (5.7)
#define ifr_index       ifr_ifru.ifru_index     /* interface index */ 
        ^^^^^^^^^

I do not have any great solution then to revert to the first
patch. Which is always to provide ifr_index and
#if defined(__linux__)
#define ifr_index ifr_ifindex
#endif

or the other way around.

-- 
au revoir, alain
----
Aussi haut que l'on soit assis, on n'est toujours assis que sur son cul !!!




reply via email to

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