diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-09-14 23:28:01 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2007-09-14 23:28:01 (GMT) |
commit | 44d362409d5469aed47d19e7908d19bd194493a4 (patch) | |
tree | 5d1e739a4566f3af796273e5c3f78ca53d234df6 /tests/test-socket-creation.c | |
download | libnl-44d362409d5469aed47d19e7908d19bd194493a4.zip libnl-44d362409d5469aed47d19e7908d19bd194493a4.tar.gz libnl-44d362409d5469aed47d19e7908d19bd194493a4.tar.bz2 |
Initial import
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 0000000..5a06661 --- /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; +} |