Hi Martin,
So the the problem was that within a Solaris 10 zone only interface aliases
are present by default, in my case the parent interface was not accessible.
The quick and dirty fix that worked for me was to comment out line 112.
111: myflags = 0;
112: if ( (cptr = strchr(ifr->ifr_name, ':')) != NULL)
113: *cptr = 0; /* replace colon will null
*/
114: if (strncmp(lastname, ifr->ifr_name, IFNAMSIZ) == 0) {
115: if (doaliases == 0)
116: continue; /* already processed
this interface */
117: myflags = IFI_ALIAS;
118: }
119: printf("%s\n",ifr->ifr_name);
120: memcpy(lastname, ifr->ifr_name, IFNAMSIZ);
Thanks for the help,
Brian
On 6/7/06 4:02 AM, "Martin Knoblauch" <[EMAIL PROTECTED]> wrote:
> Hi Brian,
>
> this apparently (most likely) happens in line 122 of:
>
> srclib/libmetrics/get_ifi_info.c:
>
> 119: memcpy(lastname, ifr->ifr_name, IFNAMSIZ);
> 120:
> 121: ifrcopy = *ifr;
> 122: Ioctl(sockfd, SIOCGIFFLAGS, &ifrcopy);
>
> Could you try to add some debug output to check the interface name it
> is processing at that time? "lastname" or "ifr->ifr_name" would be
> interesting.
>
> Cheers
> Martin
>
> --- Brian Peterson <[EMAIL PROTECTED]> wrote:
>
>> >
>> > Here�s a truss output. This was with 3.0.3 but it also happens
> with
>> > 3.0.0
>> >
>> > so_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 4
>> > ioctl(4, SIOCGIFCONF, 0x08045DD8) = 0
>> > ioctl(4, SIOCGIFCONF, 0x08045DD8) = 0
>> > ioctl(4, SIOCGIFFLAGS, 0x08045E00) Err#6 ENXIO
>> > fstat64(2, 0x08043B60) = 0
>> > ioctl error: No such device or address
>> > write(2, " i o c t l e r r o r :".., 39) = 39
>> > _exit(1)
>> >
>
>
> ------------------------------------------------------
> Martin Knoblauch
> email: k n o b i AT knobisoft DOT de
> www: http://www.knobisoft.de
>
**************************************************************************************************
The information contained in this message (including any attachments) may be
confidential. This message (including any attachments) is intended to be read
only by
the recipient(s) to whom it is addressed. If the reader of this message is not
the
intended recipient, you are on notice that any distribution of this message, in
any form,
is strictly prohibited. If you have received this message in error, please
immediately
notify the sender and/or Shutterfly by telephone at (650) 610-5200 and delete
or
destroy any copy of this message (including any attachments).
**************************************************************************************************