[haiku-commits] Change in haiku[master]: net_socket: getsockname() now works with unnamed sockets

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 26 Sep 2018 04:03:46 +0000

From leorize <alaviss@xxxxxxxxxxxxxxxxxxxxxxxx>:

leorize has uploaded this change for review. ( https://review.haiku-os.org/594


Change subject: net_socket: getsockname() now works with unnamed sockets
......................................................................

net_socket: getsockname() now works with unnamed sockets

getsockname() now set the socket family and zero all other fields
of sockaddr if an unnamed socket is passed as an argument. This allows
retrieving the socket family from an unnamed socket.

This change is compatible with POSIX and appears to aligns with
Linux, FreeBSD, DragonflyBSD and OpenBSD behaviors.

Fixes #14312
---
M src/add-ons/kernel/network/stack/net_socket.cpp
1 file changed, 5 insertions(+), 2 deletions(-)



  git pull ssh://git.haiku-os.org/haiku refs/changes/94/594/1
--
To view, visit https://review.haiku-os.org/594
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I55dbf4d6738399941bef71e6b3d7201cf78876df
Gerrit-Change-Number: 594
Gerrit-PatchSet: 1
Gerrit-Owner: leorize <alaviss@xxxxxxxxxxxxxxxxxxxxxxxx>

Other related posts:

  • » [haiku-commits] Change in haiku[master]: net_socket: getsockname() now works with unnamed sockets - Gerrit