Mercurial > hg > freeDiameter
comparison tests/testcnx.c @ 1540:407e0a889c7e
SCTP ConnectPeer: sctp_bindx() to local endpoints
When connecting to an SCTP peer using sctp_connectx() with local
addresses configured with ListenOn, bind to the ListenOn addresses
using sctp_bindx() so that the SCTP INIT only contains the
configured local addresses, matching what is advertised in the CER,
and disable SCTP_AUTO_ASCONF.
If no local addresses are configured with ListenOn, the previous
behaviour of sctp_connectx() and enable SCTP_AUTO_ASCONF is used.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Fri, 01 May 2020 18:20:33 +1000 |
parents | eff5bb332b5a |
children | 566bb46cc73f |
comparison
equal
deleted
inserted
replaced
1539:d25ce064c667 | 1540:407e0a889c7e |
---|---|
672 } | 672 } |
673 break; | 673 break; |
674 #ifndef DISABLE_SCTP | 674 #ifndef DISABLE_SCTP |
675 case IPPROTO_SCTP: | 675 case IPPROTO_SCTP: |
676 { | 676 { |
677 cnx = fd_cnx_cli_connect_sctp(0, TEST_PORT, &eps); | 677 cnx = fd_cnx_cli_connect_sctp(0, TEST_PORT, &eps, NULL); |
678 CHECK( 1, (cnx ? 1 : 0) ^ cf->expect_failure ); | 678 CHECK( 1, (cnx ? 1 : 0) ^ cf->expect_failure ); |
679 } | 679 } |
680 break; | 680 break; |
681 #endif /* DISABLE_SCTP */ | 681 #endif /* DISABLE_SCTP */ |
682 default: | 682 default: |