2ed96b7598
* Sprinkle const. * Use EXIT_FAILURE instead of 1. * Use err(), errx(). * Use calloc() instead of malloc()+memset(). * timedc: * Non-terminated hostnames or unknown tsp_type could cause a crash due to out-of-bounds reads in msite(). * Check the received packet size. * Merged duplicated code into functions. * Moved variables into the relevant scopes. * Use connect() so that only the receiver can reply, send()/recv() can be used and rejected packets are immediately noticed by recv() instead of causing timeouts. * Updated manpage. |
||
---|---|---|
.. | ||
cmds.c | ||
cmdtab.c | ||
Makefile | ||
timedc-extern.h | ||
timedc.8 | ||
timedc.c | ||
timedc.h |