TODO (1471B)
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 [ ] sane default value for client-id and test it. 6 [ ] add new options to man page (-d, -i). 7 [ ] update LICENSE. 8 [ ] replace unsigned char ip[4] and so on from function declarations. 9 [?] ipv6 support ? 10 [ ] allow sdhcp to run in the foreground (-f?) 11 12 Changed (for now): 13 - cleanup 14 - code style. 15 - trailing whitespace and use tabs. 16 - remove debug (dbgprintf()) code in sdhcp.c. 17 - code compiles more cleanly (ansi and c99), 18 -D_BSD_SOURCE added and explicitly added missing headers (time.h and unistd.h). 19 - moved man page from sdhcp.8 to sdhcp.1 20 - typos: 21 - sdhcp.c: interface typo. 22 - sdhcp.1: shdcp typo. 23 - make exit([01]), EXIT_SUCCESS or EXIT_FAILURE. 24 - replace write() for stdout messages with fprintf() 25 - replace die() with eprintf(). 26 - makefile: 27 - man page install should respect $DESTDIR. 28 - make sure on install /sbin and mandir exists. 29 - add config.mk, and follow suckless Makefile style. 30 - add arg.h 31 - first parameter remains interface. 32 - second parameter is optional client-id, used to be hardcoded to 33 "vaio". 34 - add -d flag, don't update /etc/resolv.conf. 35 - add -i flag, don't set ip. 36 - add -e flag, run program, this has the following variables set: 37 $SERVER, DHCP ip. 38 $DNS, DNS ip. 39 $ROUTER, router ip. 40 $MASK, network mask. 41 $CLIENT, client ip.