libuv/test
Ben Kelly 14aa6153be unix, win: add netmask to uv_interface_address
Include the netmask when returning information about the OS network
interfaces.

This commit provides implementations for windows and those unix
platforms using getifaddrs().

AIX was not implemented because it requires the use of ioctls and I do
not have an AIX development/test environment.  The windows code was
developed using mingw on winxp as I do not have access to visual studio.

Tested on darwin (ipv4/ipv6) and winxp (ipv4 only).  Needs testing on
newer windows using ipv6 and other unix platforms.
2013-04-10 14:48:23 +02:00
..
fixtures win, unix: add uv_dlerror() and uv_dlerror_free() 2012-03-02 16:39:21 +01:00
benchmark-async-pummel.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-async.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-fs-stat.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-getaddrinfo.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-list.h bench: add 'million async handles' benchmark 2012-12-24 12:19:10 +01:00
benchmark-loop-count.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-million-async.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-million-timers.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-multi-accept.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-ping-pongs.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-pound.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-pump.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-sizes.c test: add uv_fs_poll_t to benchmark-sizes.c 2012-08-20 16:31:54 +02:00
benchmark-spawn.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-tcp-write-batch.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
benchmark-thread.c Make the thread_create benchmark not time out 2012-03-09 17:53:48 +01:00
benchmark-udp-pummel.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
blackhole-server.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
dns-server.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
echo-server.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
run-benchmarks.c test: add tap output 2013-02-22 23:06:17 +01:00
run-tests.c test: add tap output 2013-02-22 23:06:17 +01:00
runner-unix.c test: remove 'is root?' check 2013-02-27 21:35:40 +01:00
runner-unix.h Add copyright headers, license file. 2011-04-18 11:11:30 -07:00
runner-win.c test: add tap output for windows 2013-03-11 18:12:25 +01:00
runner-win.h test: fix windows #include bug 2012-10-03 00:58:04 +02:00
runner.c test: fix tap output even when ok but have output 2013-02-27 22:48:54 +01:00
runner.h test: add tap output 2013-02-22 23:06:17 +01:00
task.h test, bench: ANSI-fy function prototypes 2013-01-06 22:31:48 +01:00
test-active.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-async.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-barrier.c unix, windows: add thread barrier support 2012-10-09 17:30:52 +02:00
test-callback-order.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-callback-stack.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-condvar.c Add support for condition variables on all platforms 2012-10-05 13:03:55 +02:00
test-connection-fail.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-cwd-and-chdir.c Test cwd_and_chdir: don't chdir to "" or "c:" 2012-03-09 16:31:02 +01:00
test-delayed-accept.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-dlerror.c unix, win: rework uv_dlopen() API 2012-05-03 19:36:40 +02:00
test-embed.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-error.c error reporting: return sensible messages for synthetic errors 2011-10-06 01:17:46 +02:00
test-fail-always.c Benchmark runner 2011-04-19 04:47:21 +02:00
test-fs-event.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-fs-poll.c unix, windows: nanosecond resolution for uv_fs_[fl]stat 2013-03-19 21:48:15 +01:00
test-fs.c unix, windows: nanosecond resolution for uv_fs_[fl]stat 2013-03-19 21:48:15 +01:00
test-get-currentexe.c Fix test-get-currentexe on darwin. 2011-09-08 14:20:06 -07:00
test-get-loadavg.c os: implement loadavg (not working on cygwin/win) 2011-10-04 18:15:14 +02:00
test-get-memory.c Tests: don't use %zu placeholder in printf statements 2012-04-11 22:54:02 +02:00
test-getaddrinfo.c unix: getaddrinfo_cb status arg should be 0 or -1 2013-03-26 22:30:46 +01:00
test-getsockname.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-hrtime.c test: allow 80 ms intervals in hrtime test 2012-07-03 22:33:10 +02:00
test-idle.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-ipc-send-recv.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-ipc.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-list.h unix: getaddrinfo_cb status arg should be 0 or -1 2013-03-26 22:30:46 +01:00
test-loop-handles.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-loop-stop.c windows: fix uv_stop in ONCE and NOWAIT modes 2013-02-25 18:26:58 +01:00
test-multiple-listen.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-mutexes.c Wrap platform mutex and rwlock APIs. 2011-11-18 12:42:08 +01:00
test-pass-always.c Benchmark runner 2011-04-19 04:47:21 +02:00
test-ping-pong.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-pipe-bind-error.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-pipe-connect-error.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-platform-output.c unix, win: add netmask to uv_interface_address 2013-04-10 14:48:23 +02:00
test-poll-close.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-poll.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-process-title.c unix: fix format string vulnerability in freebsd.c 2012-07-19 16:26:54 +02:00
test-ref.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-run-nowait.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-run-once.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-semaphore.c unix, windows: add semaphore functions 2012-06-03 04:04:05 +02:00
test-shutdown-close.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-shutdown-eof.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-signal-multiple-loops.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-signal.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-spawn.c unix: auto-unref spawn handle on process exit 2013-02-22 14:39:40 +01:00
test-stdio-over-pipes.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-bind6-error.c unix, windows: make uv_*_bind() error codes consistent 2013-01-18 12:18:23 +01:00
test-tcp-bind-error.c unix, windows: make uv_*_bind() error codes consistent 2013-01-18 12:18:23 +01:00
test-tcp-close-while-connecting.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-close.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-connect6-error.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-connect-error-after-write.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-connect-error.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-connect-timeout.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-flags.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-open.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-read-stop.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-shutdown-after-write.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-unexpected-read.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-write-to-half-open-connection.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-tcp-writealot.c unix: don't write more than IOV_MAX iovecs 2013-04-08 19:51:30 +04:00
test-thread.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-threadpool-cancel.c unix: getaddrinfo_cb status arg should be 0 or -1 2013-03-26 22:30:46 +01:00
test-threadpool.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-timer-again.c unix, windows: make uv_now() return uint64_t 2013-02-20 16:58:45 +01:00
test-timer.c unix: make timers handle large timeouts 2013-03-21 14:54:36 +01:00
test-tty.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-udp-dgram-too-big.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-udp-ipv6.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-udp-multicast-join.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-udp-multicast-ttl.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-udp-open.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-udp-options.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00
test-udp-send-and-recv.c unix: don't clear flags after closing UDP handle 2013-03-28 16:08:42 +01:00
test-util.c util: add uv_strlcpy() and uv_strlcat() functions 2011-11-23 17:29:02 +01:00
test-walk-handles.c unix, windows: rename uv_run2 to uv_run 2013-01-16 23:35:29 +01:00