mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
output: add json format support
Reviewed-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Gilles Bouthenot <gilles.bouthenot@univ-fcomte.fr>
This commit is contained in:
parent
179e2ac147
commit
a302bc6829
7 changed files with 156 additions and 5 deletions
|
|
@ -119,7 +119,7 @@ int parse_leases(void)
|
|||
|
||||
line = xmalloc(sizeof(char) * MAXLEN);
|
||||
ipstring = xmalloc(sizeof(char) * MAXLEN);
|
||||
if (config.output_format[0] == 'X') {
|
||||
if (config.output_format[0] == 'X' || config.output_format[0] == 'J') {
|
||||
macstring = xmalloc(sizeof(char) * 18);
|
||||
macaddr = xmalloc(sizeof(struct macaddr_t));
|
||||
macaddr_p = macaddr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue