* Introduced a reader_thread member to the private net_device_interface.
* When shutting down an interface, we now wait until its reader thread is gone, too; this is necessary in case the kernel unloads the networking stack before the reader thread had a chance to exit. * Added some debug output to net_socket in case you ask for unknown options. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19741 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2006-2007, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -716,6 +716,7 @@ socket_getsockopt(net_socket *socket, int level, int option, void *value,
|
||||
break;
|
||||
}
|
||||
|
||||
dprintf("socket_getsockopt: unknown option %d\n", option);
|
||||
return ENOPROTOOPT;
|
||||
}
|
||||
|
||||
@@ -996,6 +997,7 @@ socket_setsockopt(net_socket *socket, int level, int option, const void *value,
|
||||
break;
|
||||
}
|
||||
|
||||
dprintf("socket_setsockopt: unknown option %d\n", option);
|
||||
return ENOPROTOOPT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user