mirror of
https://github.com/sheumann/hush.git
synced 2024-09-06 22:54:31 +00:00
hello i had some trouble with the filedescriptor in udhcp. Two things happened on my device: 1.) broken or not connected cable (no dhcp-server) 2.) daemonizing (starting with option -b) i got a filedescriptor fd=0 from function raw_socket, after daemonizing (daemon call) the fd is closed. Client can't recieve data's anymore. i fixed this problem (like pidfile handling): |
||
---|---|---|
.. | ||
arpping.c | ||
arpping.h | ||
AUTHORS | ||
ChangeLog | ||
clientpacket.c | ||
clientpacket.h | ||
common.c | ||
common.h | ||
Config.in | ||
COPYING | ||
dhcpc.c | ||
dhcpc.h | ||
dhcpd.c | ||
dhcpd.h | ||
dumpleases.c | ||
files.c | ||
files.h | ||
frontend.c | ||
leases_file.c | ||
leases.c | ||
leases.h | ||
libbb_udhcp.h | ||
Makefile | ||
Makefile.in | ||
options.c | ||
options.h | ||
packet.c | ||
packet.h | ||
README | ||
README.dumpleases | ||
README.udhcpc | ||
README.udhcpd | ||
script.c | ||
script.h | ||
serverpacket.c | ||
serverpacket.h | ||
socket.c | ||
socket.h | ||
TODO | ||
version.h |
udhcp server/client package readme ------------------------- The udhcp server/client package is primarily geared towards embedded systems. It does however, strive to be fully functional, and RFC compliant. compile time options ------------------- The Makefile contains three of the compile time options: DEBUG: If DEBUG is defined, udhcpd will output extra debugging output, compile with -g, and not fork to the background when run. SYSLOG: If SYSLOG is defined, udhcpd will log all its messages syslog, otherwise, it will attempt to log them to stdout. COMBINED_BINARY: If COMBINED_BINARY is define, one binary, udhcpd, is created. If called as udhcpd, the dhcp server will be started. If called as udhcpc, the dhcp client will be started. dhcpd.h contains the other two compile time options: LEASE_TIME: The default lease time if not specified in the config file. DHCPD_CONFIG_FILE: The defualt config file to use. options.c contains a set of dhcp options for the client: name[10]: The name of the option as it will appear in scripts flags: The type of option, as well as if it will be requested by the client (OPTION_REQ) code: The DHCP code for this option busybox drop-in -------------- udhcp is now a drop-in component for busybox (http://busybox.net). To update busybox to the latest revision, simply do a: cp *.[ch] README AUTHORS COPYING ChangeLog TODO \ <busybox_source>/networking/udhcp The only two files udhcp does not provide are config.in and Makefile.in, so these may need to be updated from time to time.