forked from mirrors/tftp-hpa-google
Introduce socklen_t; detect non-local (e.g. broadcast) receive addresses
This commit is contained in:
parent
f3beb3a119
commit
14993bc916
7 changed files with 68 additions and 20 deletions
|
@ -96,13 +96,13 @@ char buf[PKTSIZE];
|
|||
char ackbuf[PKTSIZE];
|
||||
unsigned int max_blksize = MAX_SEGSIZE;
|
||||
|
||||
struct sockaddr_in from;
|
||||
int fromlen;
|
||||
off_t tsize;
|
||||
int tsize_ok;
|
||||
struct sockaddr_in from;
|
||||
socklen_t fromlen;
|
||||
off_t tsize;
|
||||
int tsize_ok;
|
||||
|
||||
int ndirs;
|
||||
const char **dirs;
|
||||
int ndirs;
|
||||
const char **dirs;
|
||||
|
||||
int secure = 0;
|
||||
int cancreate = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue