* 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:
Axel Dörfler
2007-01-08 15:41:56 +00:00
parent 86e355a227
commit de8a7c2680
3 changed files with 14 additions and 7 deletions
@@ -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;
}