diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-04-08 20:52:33 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-04-08 21:26:12 +0200 |
commit | ff60be3726fc766e27ad7d5890b11405b8c70041 (patch) | |
tree | aa9160f84ffaac2d7f9a1b93c50bfcda9a5d9ac6 /tests/socket/socket_test.ok | |
parent | 18a62b04887d8c6f6d338404330391a66c337b69 (diff) |
Add osmo_sock_init2() function, allowing both BIND *and* CONNECTlaforge/sock2
The old osmo_sock_init() function allows only either a bind (for a
server socket), or a connect (for a client socket), but not both
together. So there's no way to have a client socket that is bound to a
specific local IP and/or port, which is needed for some use cases.
Change-Id: Idab124bcca47872f55311a82d6818aed590965e6
Diffstat (limited to 'tests/socket/socket_test.ok')
-rw-r--r-- | tests/socket/socket_test.ok | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/socket/socket_test.ok b/tests/socket/socket_test.ok index d6ec40ed..4b24fbce 100644 --- a/tests/socket/socket_test.ok +++ b/tests/socket/socket_test.ok @@ -1,3 +1,7 @@ Checking osmo_sock_init() with bind to a random local UDP port Checking for OSMO_SOCK_F_NONBLOCK Checking for invalid flags +Checking osmo_sock_init2() with bind to a random local UDP port +Checking osmo_sock_init2() for OSMO_SOCK_F_NONBLOCK +Checking osmo_sock_init2() for invalid flags +Checking osmo_sock_init2() for combined BIND + CONNECT |