[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-devtools
Subject:    Re: HPUX-DEVTOOLS: Getting number of interface on HPUX
From:       Rick Jones <rick.jones2 () hp ! com>
Date:       2006-10-12 17:00:58
Message-ID: 452E74CA.6030800 () hp ! com
[Download RAW message or body]

Manish Katiyar wrote:
> Hi Rick,
> 
> Thanks for you response....Are you aware of any documents or tutorials about
> socket ioctl calls on HPUX ??.........I am unable to find anything useful
> related to this on internet.

I would think that either ITRC or docs.hp.com would be the place if it exists.

rick

> 
> Thanks in advance.....
> 
> On 10/11/06, Rick Jones <rick.jones2@hp.com> wrote:
> 
>>Manish Katiyar wrote:
>>
>>>Thanks a lot Rick for doing this for me....I will post this question to
>>
>>ITRC
>>
>>>forum. However the number of interfaces returned is different in two
>>
>>cases
>>
>>>when I use AF_INET and AF_INET6.
>>
>>I suspect it is returning interfaces from the standpoint of the transport,
>>not
>>necessarily the data link.  And, an interface doing v4 might not be doing
>>v6 and
>>vice versa.
>>
>>If what you want is a list of NICs, you probably need to be doing things
>>with DLPI.
>>
>>rick
>>
>>
>>>Let me see if i can  get any help from ITRC.
>>>Thanks again..
>>>
>>>
>>>
>>>On 10/10/06, Rick Jones <rick.jones2@hp.com> wrote:
>>>
>>>
>>>>I took the liberty of fowarding the question to someone in HP-UX
>>
>>Transport
>>
>>>>land.
>>>> They chose to respond via me, so here is what they said:
>>>>
>>>>
>>>>
>>>>>The ioctl to use to get the number of IPv6 interfaces on HP-UX 11.23
>>>>>is SIOCGLIFNUM.  SIOCGLIFCONF is used to return the interface list
>>>>>using the new v6 structures.  SIOCGIFNUM is only valid for an IPv4
>>>>>socket, and will return ENOENT in v6, indicating that it is an
>>>>>unknown ioctl for this protocol.
>>>>>
>>>>>This is assuming, of course, that they are using 11.23 using the
>>>>>0409 release (Sep. 2004) or later, when IPv6 support was added.
>>>>>I don't think they could open a v6 socket at all without that.
>>>>
>>>>hth,
>>>>
>>>>rick jones
>>>>BTW, the question is "off-topic" for the list - netnews group
>>>>comp.sys.hp.hpux
>>>>or perhaps one of the HP ITRC Forums would be a closer fit.
>>>>
>>>
>>>
>>>
>>>
>>
> 
> 
 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE hpux-devtools
 _________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic