[COMMIT osv master] libc/getifaddrs: Extract and use allocate_and_add_ifaddrs

2016-10-26 Thread Commit Bot
From: Benoît Canet Committer: Nadav Har'El Branch: master libc/getifaddrs: Extract and use allocate_and_add_ifaddrs The code will need to allocate twice as much ifaddr_storage structure to be able to return mac addresses in their own ifaddrs

[COMMIT osv master] libc/getifaddrs: Also return ifaddrs with ether hw addresses

2016-10-26 Thread Commit Bot
From: Benoît Canet Committer: Nadav Har'El Branch: master libc/getifaddrs: Also return ifaddrs with ether hw addresses Before this patch, OSv's getifaddrs() returns for each network interface a single entry, with the AF_INET address family

[COMMIT osv master] uipc_socket.cc: prevent use after free bug in soisdisconnected

2016-10-26 Thread Commit Bot
From: Timmons C. Player Committer: Nadav Har'El Branch: master uipc_socket.cc: prevent use after free bug in soisdisconnected Simultaneously closing a socket from both the network and user space sides can trigger a use after free bug in

[PATCH v3 3/3] libc/getifaddrs: Also return ifaddrs with ether hw addresses

2016-10-26 Thread Benoît Canet
Add these structure add the end of the list after the INET and INET6 addresses are filled. Signed-off-by: Benoît Canet --- libc/network/getifaddrs.c | 71 --- 1 file changed, 67 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v2 3/3] libc/getifaddrs: Also return ifaddrs with ether hw addresses

2016-10-26 Thread Benoît Canet
On Wed, Oct 26, 2016 at 2:03 PM, Nadav Har'El wrote: > Please add "Fixes #787" to the commit message. > > Thanks, the patch looks mostly correct, but one question below. > > On Wed, Oct 26, 2016 at 2:33 PM, Benoît Canet com> wrote: > >> Add these

[PATCH v2 1/3] libc: Move getifaddrs.c from musl to libc.

2016-10-26 Thread Benoît Canet
Signed-off-by: Benoît Canet --- Makefile | 2 +- libc/network/getifaddrs.c | 180 ++ 2 files changed, 181 insertions(+), 1 deletion(-) create mode 100644 libc/network/getifaddrs.c diff --git a/Makefile