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
7
config.h
7
config.h
|
@ -1,6 +1,6 @@
|
|||
/* -*- c -*- ------------------------------------------------------------- *
|
||||
*
|
||||
* Copyright 2001 H. Peter Anvin - All Rights Reserved
|
||||
* Copyright 2001-2006 H. Peter Anvin - All Rights Reserved
|
||||
*
|
||||
* This program is free software available under the same license
|
||||
* as the "OpenBSD" operating system, distributed at
|
||||
|
@ -217,6 +217,11 @@ typedef unsigned long u_long;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* socklen_t */
|
||||
#ifndef HAVE_SOCKLEN_T
|
||||
typedef int socklen_t;
|
||||
#endif
|
||||
|
||||
/* sysexits.h */
|
||||
|
||||
#ifdef HAVE_SYSEXITS_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue