2010-06-02 16:55:41     udhcpd question

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2010-06-02 16:55:41     udhcpd question

Dimitar Penev (BULGARIA)

Message: 90079   

 

Hi Guys,

 

I am testing the dhcp server as included in the busybox from the blackfin uClinux svn.

I have tried with two busybox versions busybox-1.14.3 and busybox-1.15.3 with similar results.

 

I can start the server in foreground mode

~>/usr/sbin/udhcpd -f

udhcpd (v1.15.3) started

 

and I see the server listening on port 67UDP.

 

In the demon mode however it seems the server cannot fork an instance and just terminates.

No active process and no server listening on port 67.

 

Is there someone using UDHCPD successfully?

Thanks

Dimitar

QuoteReplyEditDelete

 

 

2010-06-02 17:17:27     Re: udhcpd question

Mike Frysinger (UNITED STATES)

Message: 90080   

 

neither of those busybox versions are in the Blackfin uclinux-dist svn.  what version of software exactly are you using ?

QuoteReplyEditDelete

 

 

2010-06-02 17:35:32     Re: udhcpd question

Dimitar Penev (BULGARIA)

Message: 90081   

 

Hi Mike,

 

I have tried with the following two revisions of the busybox:

 

svn checkout --revision 8701 svn://sources.blackfin.uclinux.org/uclinux-dist/trunk/user/busybox busybox

svn checkout --revision 9338 svn://sources.blackfin.uclinux.org/uclinux-dist/trunk/user/busybox busybox

 

I have built it using 2009R1.1-RC2 toolchain.

 

Best Regards

Dimitar

QuoteReplyEditDelete

 

 

2010-06-02 17:38:39     Re: udhcpd question

Mike Frysinger (UNITED STATES)

Message: 90082   

 

dont do that.  test what is in the latest svn.

QuoteReplyEditDelete

 

 

2010-06-02 20:05:02     Re: udhcpd question

Dimitar Penev (BULGARIA)

Message: 90084   

 

Hi Mike,

 

I got the same result with the busybox svn head.

 

Probably somone can confirm that udhcpd is working as a demon?

It may be just a dhcp server configuration issue ...

 

Best Regards

Dimitar

QuoteReplyEditDelete

 

 

2010-06-02 20:23:27     Re: udhcpd question

Mike Frysinger (UNITED STATES)

Message: 90085   

 

the point is, we arent going to look at older versions.  if latest trunk doesnt work, we'll look.

QuoteReplyEditDelete

 

 

2010-06-02 20:35:28     Re: udhcpd question

Mike Frysinger (UNITED STATES)

Message: 90086   

 

try this patch:

--- user/busybox/busybox-1.16.1/networking/udhcp/dhcpd.c

+++ user/busybox/busybox-1.16.1/networking/udhcp/dhcpd.c

@@ -51,11 +51,11 @@ int udhcpd_main(int argc UNUSED_PARAM, c

                , &dhcp_verbose

#endif

                );

-       argv += optind;

        if (!(opt & 1)) { /* no -f */

                bb_daemonize_or_rexec(0, argv);

                logmode = LOGMODE_NONE;

        }

+       argv += optind;

        if (opt & 2) { /* -S */

                openlog(applet_name, LOG_PID, LOG_DAEMON);

                logmode |= LOGMODE_SYSLOG;

QuoteReplyEditDelete

 

 

2010-06-04 13:12:55     Re: udhcpd question

Dimitar Penev (BULGARIA)

Message: 90135   

 

Hi Mike,

 

The patch is working.

 

Thanks

Dimitar

Attachments

    Outcomes