sdhcp

simple dhcp client
git clone git://git.2f30.org/sdhcp
Log | Files | Refs | LICENSE

TODO (1321B)


      1 TODO:
      2 [ ] manual check memcpy bounds.
      3 [ ] add flag (-s?) to probe a specific DHCP server, not broadcast?
      4     probably skip in run() Init: etc stages.
      5 [ ] replace unsigned char ip[4] and so on from function declarations.
      6 [?] ipv6 support ?
      7 
      8 Changed (for now):
      9 	- cleanup
     10 		- code style.
     11 		- trailing whitespace and use tabs.
     12 		- remove debug (dbgprintf()) code in sdhcp.c.
     13 		- code compiles more cleanly (ansi and c99),
     14 		  -D_BSD_SOURCE added and explicitly added missing headers (time.h and unistd.h).
     15 		- moved man page from sdhcp.8 to sdhcp.1
     16 		- changed man page to mandoc.
     17 	- typos:
     18 		- sdhcp.c: interface typo.
     19 		- sdhcp.1: shdcp typo.
     20 	- replace write() for stdout messages with fprintf()
     21 	- replace die() with eprintf().
     22 	- makefile:
     23 		- man page install should respect $DESTDIR.
     24 		- make sure on install /sbin and mandir exists.
     25 		- add config.mk, and follow suckless Makefile style.
     26 	- add arg.h
     27 		- first parameter remains interface.
     28 		- second parameter is optional client-id, used to be hardcoded to
     29 		  "vaio".
     30 		- add -d flag, don't update /etc/resolv.conf.
     31 		- add -i flag, don't set ip.
     32 		- add -f flag, run in foreground.
     33 		- add -e flag, run program, this has the following variables set:
     34 		  $SERVER, DHCP ip.
     35 		  $DNS, DNS ip.
     36 		  $ROUTER, router ip.
     37 		  $MASK, network mask.
     38 		  $CLIENT, client ip.