Display libpcap version
This commit is contained in:
parent
79ba1d58e6
commit
84ea5d6c9c
1 changed files with 5 additions and 2 deletions
7
main.c
7
main.c
|
|
@ -21,6 +21,7 @@
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <pcap.h>
|
||||||
#include "nmrpd.h"
|
#include "nmrpd.h"
|
||||||
|
|
||||||
void usage(FILE *fp)
|
void usage(FILE *fp)
|
||||||
|
|
@ -73,14 +74,16 @@ void usage(FILE *fp)
|
||||||
"nmrpflash %s, Copyright (C) 2016-2022 Joseph C. Lehner\n"
|
"nmrpflash %s, Copyright (C) 2016-2022 Joseph C. Lehner\n"
|
||||||
"nmrpflash is free software, licensed under the GNU GPLv3.\n"
|
"nmrpflash is free software, licensed under the GNU GPLv3.\n"
|
||||||
"Source code at https://github.com/jclehner/nmrpflash\n"
|
"Source code at https://github.com/jclehner/nmrpflash\n"
|
||||||
"\n",
|
"\n"
|
||||||
|
"%s\n",
|
||||||
NMRP_DEFAULT_IP_REMOTE,
|
NMRP_DEFAULT_IP_REMOTE,
|
||||||
NMRP_DEFAULT_IP_LOCAL,
|
NMRP_DEFAULT_IP_LOCAL,
|
||||||
NMRP_DEFAULT_SUBNET,
|
NMRP_DEFAULT_SUBNET,
|
||||||
NMRP_DEFAULT_RX_TIMEOUT_MS,
|
NMRP_DEFAULT_RX_TIMEOUT_MS,
|
||||||
NMRP_DEFAULT_UL_TIMEOUT_S,
|
NMRP_DEFAULT_UL_TIMEOUT_S,
|
||||||
NMRP_DEFAULT_TFTP_PORT,
|
NMRP_DEFAULT_TFTP_PORT,
|
||||||
NMRPFLASH_VERSION
|
NMRPFLASH_VERSION,
|
||||||
|
pcap_lib_version()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue