master
work on making log.c similar in all daemons:
correct indentation; no functional change ok tb@
Bring in sync with the bgpd version of carp.c. This fixes a memory leak in an error path.
Convert simple stuff in usr.sbin over to new imsgbuf_init behaviour
Apply same cleanup to the control code as in ospfd. Internalize control_state and ctl_conns.
Mechanically change inet_aton to inet_pton.
More daemons need the same treatment as ospfd recently got in order to prevent NULL dereference in interface departure logic when the arrival of the same interface has not been observed.
Like in all other log.c file just use exit(1) in fatal() calls. This log.c should be further synced with the other log.c files.
including sys/cdefs.h manually started as a result of netbsd trying to macro-build a replacement for sccsid, and was done without any concern for namespace damage. Unfortunately this practice started infecting other code as others were unaware they didn't need the file. ok millert guenther
New redistribute code adapted from ospfd. It is now possible to do the same redistribute setups as in ospfd (rtlables, per prefix, negation). Tested, input and OK michele@
Delete obsolete /* ARGSUSED */ lint comments.
Like ospfd allocate the recv buffer with malloc() on first call. This code assumes some alignment of the buffer which may not be the case with bss memory.
Don't declare variables as "unsigned char *" that are passed to functions that take "char *" arguments. Where such chars are assigned to int or passed to ctype functions, explicitly cast them to unsigned char.
fix typo
The metric is a 8bit value ranging from 1 to INFINITY (defined as a whopping 16). So use u_int8_t everywhere.
spacing
improve the Nd lines such that the format is consistent for the various *d, *conf, *ctl files (where relevant) and simple;
remove duplicate RT_BUF_SIZE define
Like in ospfd make the pkt_ptr a local static buffer.