[BusyBox 0001154]: 3 files' patches: networking/libiproute/libnetlink.h, sysklogd/syslogd.c, libbb/xconnect.c

bugs at busybox.net bugs at busybox.net
Fri Jan 26 00:07:29 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1154 
====================================================================== 
Reported By:                rockeychu
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1154
Category:                   Other
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             01-10-2007 07:12 PST
Last Modified:              01-25-2007 16:07 PST
====================================================================== 
Summary:                    3 files' patches:
networking/libiproute/libnetlink.h, sysklogd/syslogd.c, libbb/xconnect.c
Description: 
Without these patches, I can't build busybox.
 
Index: networking/libiproute/libnetlink.h
===================================================================
--- networking/libiproute/libnetlink.h  (revision 17224)
+++ networking/libiproute/libnetlink.h  (working copy)
@@ -2,6 +2,7 @@
 #ifndef __LIBNETLINK_H__
 #define __LIBNETLINK_H__ 1

+#include <linux/types.h>
 #include <linux/netlink.h>
 #include <linux/rtnetlink.h>

Index: sysklogd/syslogd.c
===================================================================
--- sysklogd/syslogd.c  (revision 17224)
+++ sysklogd/syslogd.c  (working copy)
@@ -573,7 +573,7 @@
                }
                /* FIXME: looks ip4-specific. need to do better */
                bb_lookup_host(&remoteAddr, opt_R);
-               remoteAddr.sin_port = bb_lookup_port(port, "udp", port);
+               remoteAddr.sin_port = htons(port);//bb_lookup_port(port,
"udp", port);
        }
        //if (option_mask32 & OPT_locallog) // -L
 #endif

Index: libbb/xconnect.c
===================================================================
--- libbb/xconnect.c    (revision 17224)
+++ libbb/xconnect.c    (working copy)
@@ -143,7 +143,7 @@
        /* Needed. Or else we will get each address thrice (or more)
         * for each possible socket type (tcp,udp,raw...): */
        hint.ai_socktype = SOCK_STREAM;
-       hint.ai_flags = ai_flags | AI_NUMERICSERV;
+       hint.ai_flags = ai_flags | AI_NUMERICHOST;
        rc = getaddrinfo(host, cp, &hint, &result);
        if (rc || !result)
                bb_error_msg_and_die("bad address '%s'", org_host);

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

---------------------------------------------------------------------- 
 bernhardf - 01-25-07 16:07  
---------------------------------------------------------------------- 
I think this is fixed by now (revision >= 17528). Please confirm. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-10-07 07:12  rockeychu      New Issue                                    
01-10-07 07:12  rockeychu      Status                   new => assigned     
01-10-07 07:12  rockeychu      Assigned To               => BusyBox         
01-25-07 16:07  bernhardf      Note Added: 0002048                          
======================================================================




More information about the busybox-cvs mailing list