[BusyBox 0001964]: ipv6 ifconfig displays garbage for ipv6 addresses on blackfin on busybox 1.9.0

bugs at busybox.net bugs at busybox.net
Sat May 3 11:38:57 UTC 2008


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1964 
====================================================================== 
Reported By:                mtaht
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1964
Category:                   Networking Support
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             01-22-2008 01:05 PST
Last Modified:              05-03-2008 04:38 PDT
====================================================================== 
Summary:                    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:
&http://busybox.net/bugs/view.php?id=65533;&http://busybox.net/bugs/view.php?id=65533;_^C^L&http://busybox.net/bugs/view.php?id=65533;_^C^Z&http://busybox.net/bugs/view.php?id=286;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:
&http://busybox.net/bugs/view.php?id=65533;&http://busybox.net/bugs/view.php?id=65533;_^C^L&http://busybox.net/bugs/view.php?id=65533;_^C^Z&http://busybox.net/bugs/view.php?id=286;1/64
Scope:Link
          UP POINTOPOINT RUNNING NOARP  MTU:1280  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

====================================================================== 

---------------------------------------------------------------------- 
 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  
======================================================================




More information about the busybox-cvs mailing list