diff options
author | Raimo Niskanen <[email protected]> | 2010-12-02 16:49:19 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-12-02 16:49:19 +0100 |
commit | 0d79832e450c49e51f5fd7149f5f72930ef1f966 (patch) | |
tree | e6dccd01323eee60fed8551cc15730c8b3405919 /erts/emulator/drivers/common | |
parent | 2a01369408762b651785083aad8d3778bfe30e71 (diff) | |
download | otp-0d79832e450c49e51f5fd7149f5f72930ef1f966.tar.gz otp-0d79832e450c49e51f5fd7149f5f72930ef1f966.tar.bz2 otp-0d79832e450c49e51f5fd7149f5f72930ef1f966.zip |
Stop using uncertain flags for getaddrinfo()
The AI_V4MAPPED flag is falling out of grace in modern
IPv6 stacks, for security reasons, e.g. FreeBSD do not
document it any longer. The AI_ADDRCONFIG flag have
got unclear semantics on the same OS.
Diffstat (limited to 'erts/emulator/drivers/common')
-rw-r--r-- | erts/emulator/drivers/common/inet_drv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c index 18f7cdd15a..6f318e4dfc 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -5811,9 +5811,12 @@ static int sctp_set_opts(inet_descriptor* desc, char* ptr, int len) char *after; # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_FLAGS int eflags, cflags, hb_enable, hb_disable, - pmtud_enable, pmtud_disable, + pmtud_enable, pmtud_disable; +# ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_SACKDELAY + int sackdelay_enable, sackdelay_disable; # endif +# endif CHKLEN(curr, ASSOC_ID_LEN); arg.pap.spp_assoc_id = GET_ASSOC_ID(curr); curr += ASSOC_ID_LEN; |