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
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
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
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
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
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