Add --tftp-single-port option.

This commit is contained in:
Simon Kelley
2020-01-05 16:21:24 +00:00
parent 18a6bdd541
commit 66f62650c3
6 changed files with 113 additions and 64 deletions

View File

@@ -262,7 +262,8 @@ struct event_desc {
#define OPT_RAPID_COMMIT 57
#define OPT_UBUS 58
#define OPT_IGNORE_CLID 59
#define OPT_LAST 60
#define OPT_SINGLE_PORT 60
#define OPT_LAST 61
#define OPTION_BITS (sizeof(unsigned int)*8)
#define OPTION_SIZE ( (OPT_LAST/OPTION_BITS)+((OPT_LAST%OPTION_BITS)!=0) )
@@ -960,6 +961,8 @@ struct tftp_transfer {
unsigned int block, blocksize, expansion;
off_t offset;
union mysockaddr peer;
union all_addr source;
int if_index;
char opt_blocksize, opt_transize, netascii, carrylf;
struct tftp_file *file;
struct tftp_transfer *next;