diff options
Diffstat (limited to 'tests/test-socket-creation.c')
-rw-r--r-- | tests/test-socket-creation.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-socket-creation.c b/tests/test-socket-creation.c new file mode 100644 index 00000000..5a06661d --- /dev/null +++ b/tests/test-socket-creation.c @@ -0,0 +1,15 @@ +#include "../src/utils.h" + +int main(int argc, char *argv[]) +{ + struct nl_handle *h; + int i; + + for (i = 0; i < 1025; i++) { + h = nl_handle_alloc(); + printf("Created handle with port 0x%x\n", + nl_socket_get_local_port(h)); + } + + return 0; +} |