mirror of
https://repo.or.cz/socat.git
synced 2025-07-30 06:02:56 +00:00
Added options res-retrans, res-retry
This commit is contained in:
parent
03f028a985
commit
282db9feda
11 changed files with 151 additions and 53 deletions
20
xio.h
20
xio.h
|
@ -133,10 +133,24 @@ extern xioparms_t xioparms;
|
|||
#define MAXARGV 8
|
||||
|
||||
#if _WITH_IP4 || _WITH_IP6
|
||||
#if WITH_RESOLVE && HAVE_RESOLV_H
|
||||
struct para_ip_res {
|
||||
unsigned int opts[2]; /* bits to be set in _res.options are in [0],
|
||||
bits to be cleared are in [1] */
|
||||
#if HAVE_RES_RETRANS
|
||||
int retrans;
|
||||
#endif
|
||||
#if HAVE_RES_RETRY
|
||||
int retry;
|
||||
#endif
|
||||
} ;
|
||||
#endif /* WITH_RESOLVE && HAVE_RESOLV_H */
|
||||
|
||||
struct para_ip {
|
||||
int ai_flags[2]; /* flags for getaddrinfo() ai_flags (set/unset) */
|
||||
unsigned long res_opts[2]; /* bits to be set in _res.options are
|
||||
at [0], bits to be cleared are at [1] */
|
||||
int ai_flags[2]; /* flags for getaddrinfo() ai_flags (set/unset) */
|
||||
#if WITH_RESOLVE && HAVE_RESOLV_H
|
||||
struct para_ip_res res;
|
||||
#endif
|
||||
bool dosourceport; /* check the source port of incoming connection or packets */
|
||||
uint16_t sourceport; /* host byte order */
|
||||
bool lowport;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue