Mercurial > hg > freeDiameter
comparison freeDiameter/tests/testsctp.c @ 478:b65f32c20e6d
Fix for FreeBSD which is less tolerant
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 09 Aug 2010 18:11:02 +0900 |
parents | 4e4ed23028ca |
children | a186743b89a3 |
comparison
equal
deleted
inserted
replaced
477:4e4ed23028ca | 478:b65f32c20e6d |
---|---|
83 | 83 |
84 /* Restrain the # of streams */ | 84 /* Restrain the # of streams */ |
85 fd_g_config->cnf_sctp_str = NB_STREAMS; | 85 fd_g_config->cnf_sctp_str = NB_STREAMS; |
86 | 86 |
87 /* Create the server socket */ | 87 /* Create the server socket */ |
88 CHECK( 0, fd_sctp_create_bind_server( &sock, AF_INET, &eps, TEST_PORT )); | 88 CHECK( 0, fd_sctp_create_bind_server( &sock, AF_INET6, &eps, TEST_PORT )); |
89 | 89 |
90 /* Accept incoming clients */ | 90 /* Accept incoming clients */ |
91 CHECK( 0, fd_sctp_listen( sock )); | 91 CHECK( 0, fd_sctp_listen( sock )); |
92 | 92 |
93 /* Now, create the client socket */ | 93 /* Now, create the client socket */ |