some getsockopt/setsockopt and multicast fixes.
* allow an ipv4 bind() to a multicast address. * bumped getsockopt/setsockopt kernel driver buffers to 256 bytes to at least handle structures which take one sockaddr_storage. * convert generic multicast delta API names to IPv4 ones before handling the specific option. * changed ipv4_getsockopt/ipv4_setsockopt a bit as the code gcc 2.95 was generating was a bit too funky. * properly pass setsockopt/getsockopt to handling protocols. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20939 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -59,9 +59,9 @@ struct net_socket_module_info {
|
||||
status_t (*receive_data)(net_socket *socket, size_t length, uint32 flags,
|
||||
net_buffer **_buffer);
|
||||
|
||||
status_t (*get_option)(net_socket *socket, int option, void *value,
|
||||
int *_length);
|
||||
status_t (*set_option)(net_socket *socket, int option,
|
||||
status_t (*get_option)(net_socket *socket, int level, int option,
|
||||
void *value, int *_length);
|
||||
status_t (*set_option)(net_socket *socket, int level, int option,
|
||||
const void *value, int length);
|
||||
|
||||
status_t (*get_next_stat)(uint32 *cookie, int family, struct net_stat *stat);
|
||||
|
||||
Reference in New Issue
Block a user