BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001964 [BusyBox] Networking Support minor always 01-22-08 01:05 05-03-08 04:38
Reporter mtaht View Status public  
Assigned To BusyBox
Priority normal Resolution unable to reproduce  
Status closed   Product Version
Summary 0001964: ipv6 ifconfig displays garbage for ipv6 addresses on blackfin on busybox 1.9.0
Description It appears that something is going wrong with the output of 'ifconfig' for ipv6. Haven't got so far as seeing if 'ip' is doing the right thing on setup...

eth0 Link encap:Ethernet HWaddr 00:09:45:54:20:A5
          inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: $#,/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:800 errors:0 dropped:0 overruns:0 frame:0
          TX packets:502 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:59718 (58.3 KiB) TX bytes:48195 (47.0 KiB)
          Interrupt:48

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: &65533;&65533;_^C^L&65533;_^C^Z&0000286;1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

sit1 Link encap:IPv6-in-IPv4
          inet6 addr: &65533;&65533;_^C^L&65533;_^C^Z&0000286;1/64 Scope:Link
          UP POINTOPOINT RUNNING NOARP MTU:1280 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
Additional Information
Attached Files

- Relationships

- Notes
(0003514)
vda
01-24-08 13:55

IIRC inet6 addresses in text form are generated here.
Please add "bb_error_msg()" as indicated with '+'
and let us know where it fails:


char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric)
{
        char name[128];
        int s;

        if (sin6->sin6_family != AF_INET6) {
#ifdef DEBUG
                bb_error_msg("rresolve: unsupport address family %d!",
                                  sin6->sin6_family);
#endif
                errno = EAFNOSUPPORT;
                return NULL;
        }
        if (numeric & 0x7FFF) {
                inet_ntop(AF_INET6, &sin6->sin6_addr, name, sizeof(name));
+bb_error_msg("inet_ntop: %s", name)
                return xstrdup(name);
        }
        if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
                if (numeric & 0x8000)
                        return xstrdup(bb_str_default);
                return xstrdup("*");
        }

        s = getnameinfo((struct sockaddr *) sin6, sizeof(struct sockaddr_in6),
                                name, sizeof(name), NULL, 0, 0);
        if (s) {
                bb_error_msg("getnameinfo failed");
                return NULL;
        }
+bb_error_msg("getnameinfo: %s", name)
        return xstrdup(name);
}
 

- Issue History
Date Modified Username Field Change
01-22-08 01:05 mtaht New Issue
01-22-08 01:05 mtaht Status new => assigned
01-22-08 01:05 mtaht Assigned To  => BusyBox
01-24-08 13:55 vda Note Added: 0003514
05-03-08 04:38 vda Status assigned => closed
05-03-08 04:38 vda Resolution open => unable to reproduce


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker