diff options
Diffstat (limited to 'resolv/resolv.h')
-rw-r--r-- | resolv/resolv.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/resolv/resolv.h b/resolv/resolv.h index 058c631279..d9f798b3b2 100644 --- a/resolv/resolv.h +++ b/resolv/resolv.h @@ -123,6 +123,16 @@ struct res_sym { #define RES_DFLRETRY 2 /* Default #/tries. */ #define RES_MAXTIME 65535 /* Infinity, in milliseconds. */ +/* + * Like "struct sockaddr_in", but without any padding (to avoid making + * "struct __rest_state" too large). + */ +struct __sockaddr_in { + __SOCKADDR_COMMON (sin_); + in_port_t sin_port; + struct in_addr sin_addr; +}; + struct __res_state { int retrans; /* retransmition time interval */ int retry; /* number of times to retransmit */ @@ -153,7 +163,7 @@ struct __res_state { u_int16_t nscount; u_int16_t nstimes[MAXNS]; /* ms. */ int nssocks[MAXNS]; - struct sockaddr_in nsaddrs[MAXNS]; + struct __sockaddr_in nsaddrs[MAXNS]; } _ext; } _u; }; |