From 8aa910b94c650c7a53823fe3c13d40813cc2fd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 8 Apr 2009 15:24:45 +0000 Subject: [PATCH] * Added missing SO_TYPE. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30032 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/network/stack/net_socket.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/add-ons/kernel/network/stack/net_socket.cpp b/src/add-ons/kernel/network/stack/net_socket.cpp index 4b4f03745b..21f578be5b 100644 --- a/src/add-ons/kernel/network/stack/net_socket.cpp +++ b/src/add-ons/kernel/network/stack/net_socket.cpp @@ -1056,6 +1056,14 @@ socket_get_option(net_socket* socket, int level, int option, void* value, return B_OK; } + case SO_TYPE: + { + int32* _set = (int32*)value; + *_set = socket->type; + *_length = sizeof(int32); + return B_OK; + } + case SO_ERROR: { int32* _set = (int32*)value;