libmnl limitation...

4 messages, 2 authors, 2011-02-20 · open the first message on its own page

libmnl limitation...

From: David Miller <davem@davemloft.net>
Date: 2011-02-20 21:40:51

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 :-/

Re: libmnl limitation...

From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: 2011-02-20 22:25:11

On 20/02/11 22:41, David Miller wrote:
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.

Re: libmnl limitation...

From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: 2011-02-20 22:31:46

On 20/02/11 23:25, Pablo Neira Ayuso wrote:
On 20/02/11 22:41, David Miller wrote:
quoted
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.
Actually, we can obsolete mnl_setsockopt(...), which is silly BTW, and
we can use mnl_socket_get_fd(...) with setsockopt(...).

Re: libmnl limitation...

From: David Miller <davem@davemloft.net>
Date: 2011-02-20 22:37:49

From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: Sun, 20 Feb 2011 23:31:42 +0100
On 20/02/11 23:25, Pablo Neira Ayuso wrote:
quoted
On 20/02/11 22:41, David Miller wrote:
quoted
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.
Actually, we can obsolete mnl_setsockopt(...), which is silly BTW, and
we can use mnl_socket_get_fd(...) with setsockopt(...).
Sure.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help