aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/common/inet_drv.c
diff options
context:
space:
mode:
authorMarcus Arendt <[email protected]>2015-01-14 10:40:53 +0100
committerMarcus Arendt <[email protected]>2015-01-14 10:40:53 +0100
commit1a0d1e94e2ac2d86a1bea9a5baa7326dd5f49ea4 (patch)
tree23cb89430188e734ac426b2a89494794cfc01567 /erts/emulator/drivers/common/inet_drv.c
parent6eb7f78145dcfca2dc221f5e8e267e917f21c527 (diff)
parent06b359e3c126804045b9b14852d14b46c2e1fee9 (diff)
downloadotp-1a0d1e94e2ac2d86a1bea9a5baa7326dd5f49ea4.tar.gz
otp-1a0d1e94e2ac2d86a1bea9a5baa7326dd5f49ea4.tar.bz2
otp-1a0d1e94e2ac2d86a1bea9a5baa7326dd5f49ea4.zip
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/drivers/common/inet_drv.c')
-rw-r--r--erts/emulator/drivers/common/inet_drv.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c
index c8b69b0a94..b3c60f838d 100644
--- a/erts/emulator/drivers/common/inet_drv.c
+++ b/erts/emulator/drivers/common/inet_drv.c
@@ -2890,6 +2890,9 @@ static ErlDrvTermData am_sctp_rtoinfo, /* Option names */
/* For #sctp_paddrinfo{}: */
am_active, am_inactive,
+# if HAVE_DECL_SCTP_UNCONFIRMED
+ am_unconfirmed,
+# endif
/* For #sctp_status{}: */
# if HAVE_DECL_SCTP_EMPTY
@@ -3919,7 +3922,10 @@ static void inet_init_sctp(void) {
/* For #sctp_paddrinfo{}: */
INIT_ATOM(active);
INIT_ATOM(inactive);
-
+# if HAVE_DECL_SCTP_UNCONFIRMED
+ INIT_ATOM(unconfirmed);
+# endif
+
/* For #sctp_status{}: */
# if HAVE_DECL_SCTP_EMPTY
INIT_ATOM(empty);
@@ -7338,8 +7344,13 @@ static int load_paddrinfo (ErlDrvTermData * spec, int i,
case SCTP_INACTIVE:
i = LOAD_ATOM (spec, i, am_inactive);
break;
+# if HAVE_DECL_SCTP_UNCONFIRMED
+ case SCTP_UNCONFIRMED:
+ i = LOAD_ATOM (spec, i, am_unconfirmed);
+ break;
+# endif
default:
- ASSERT(0); /* NB: SCTP_UNCONFIRMED modifier not yet supported */
+ i = LOAD_ATOM (spec, i, am_undefined);
}
i = LOAD_INT (spec, i, pai->spinfo_cwnd);
i = LOAD_INT (spec, i, pai->spinfo_srtt);