Skip to contentSkip to conversation

libmnl limitation...

DISCUSSION David Miller 2 participants 4 messages Feb 20, 2011

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

Unfortunately, libmnl only allows setting socket options that are of SOL_NETLINK.

This precludes setting socket options such as SO_ATTACH_FILTER which need to be of level SOL_SOCKET.

It seems to be a mistake to have hard-coded the socket level instead of simply letting the user specify it :-/

#1 lore raw
Quoted 9 lines · David Miller

Unfortunately, libmnl only allows setting socket options that are of SOL_NETLINK.

This precludes setting socket options such as SO_ATTACH_FILTER which need to be of level SOL_SOCKET.

It seems to be a mistake to have hard-coded the socket level instead of simply letting the user specify it :-/

Indeed, I'm going to obsolete the current function and provide a new one. Sorry.

#2 lore raw
Quoted 5 lines · Pablo Neira Ayuso
Quoted 4 lines · David Miller

Unfortunately, libmnl only allows setting socket options that are of SOL_NETLINK.

Quoted 8 lines
Quoted 5 lines

This precludes setting socket options such as SO_ATTACH_FILTER which need to be of level SOL_SOCKET.

It seems to be a mistake to have hard-coded the socket level instead of simply letting the user specify it :-/

Indeed, I'm going to obsolete the current function and provide a new one. Sorry.

Actually, we can obsolete mnl_setsockopt(...), which is silly BTW, and we can use mnl_socket_get_fd(...) with setsockopt(...).

author maintainer
#3 lore raw

From: Pablo Neira Ayuso <[email protected]>
Date: Sun, 20 Feb 2011 23:31:42 +0100

Quoted 9 lines · Pablo Neira Ayuso
Quoted 8 lines · David Miller
Quoted 7 lines

Unfortunately, libmnl only allows setting socket options that are of SOL_NETLINK.

This precludes setting socket options such as SO_ATTACH_FILTER which need to be of level SOL_SOCKET.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

It seems to be a mistake to have hard-coded the socket level instead of simply letting the user specify it :-/

Indeed, I'm going to obsolete the current function and provide a new one. Sorry.

Actually, we can obsolete mnl_setsockopt(...), which is silly BTW, and we can use mnl_socket_get_fd(...) with setsockopt(...).

Sure.