Re: [PATCH resend] netlink.7: note not reliable if NETLINK_NO_ENOBUFS

2021-03-05 Thread Pablo Neira Ayuso
On Sat, Mar 06, 2021 at 12:21:59AM +0100, Florian Westphal wrote: > Pablo Neira Ayuso wrote: > > > If I understand correctly, the connection tracking netlink interface > > > is an exception here because it has its own handling of dealing with > > > congestion ("more reliable"?) so you need to disa

Re: [PATCH resend] netlink.7: note not reliable if NETLINK_NO_ENOBUFS

2021-03-05 Thread Florian Westphal
Pablo Neira Ayuso wrote: > > If I understand correctly, the connection tracking netlink interface > > is an exception here because it has its own handling of dealing with > > congestion ("more reliable"?) so you need to disable the "default > > congestion control"? > > In conntrack, you have to c

Re: [PATCH resend] netlink.7: note not reliable if NETLINK_NO_ENOBUFS

2021-03-05 Thread Pablo Neira Ayuso
On Fri, Mar 05, 2021 at 02:43:05PM -0500, Alexander Ahring Oder Aring wrote: > Hi Pablo, > > I appreciate your very detailed response. Thank you. > > On Thu, Mar 4, 2021 at 10:04 PM Pablo Neira Ayuso wrote: > > > > Hi Alexander, > > > > On Thu, Mar 04, 2021 at 03:57:28PM -0500, Alexander Aring w

Re: [PATCH resend] netlink.7: note not reliable if NETLINK_NO_ENOBUFS

2021-03-05 Thread Alexander Ahring Oder Aring
Hi Pablo, I appreciate your very detailed response. Thank you. On Thu, Mar 4, 2021 at 10:04 PM Pablo Neira Ayuso wrote: > > Hi Alexander, > > On Thu, Mar 04, 2021 at 03:57:28PM -0500, Alexander Aring wrote: > > This patch adds a note to the netlink manpage that if NETLINK_NO_ENOBUFS > > is set t

Re: [PATCH resend] netlink.7: note not reliable if NETLINK_NO_ENOBUFS

2021-03-04 Thread Pablo Neira Ayuso
Hi Alexander, On Thu, Mar 04, 2021 at 03:57:28PM -0500, Alexander Aring wrote: > This patch adds a note to the netlink manpage that if NETLINK_NO_ENOBUFS > is set there is no additional handling to make netlink reliable. It just > disables the error notification. A bit more background on this tog

[PATCH resend] netlink.7: note not reliable if NETLINK_NO_ENOBUFS

2021-03-04 Thread Alexander Aring
iable mode. Signed-off-by: Alexander Aring --- resend: - forgot linux-man mailinglist in cc, sorry. man7/netlink.7 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man7/netlink.7 b/man7/netlink.7 index c69bb62bf..2cb0d1a55 100644 --- a/man7/netlink.7 +++ b/man7/netlink.7

[PATCH] netlink.7: note not reliable if NETLINK_NO_ENOBUFS

2021-03-04 Thread Alexander Aring
iable mode. Signed-off-by: Alexander Aring --- man7/netlink.7 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man7/netlink.7 b/man7/netlink.7 index c69bb62bf..2cb0d1a55 100644 --- a/man7/netlink.7 +++ b/man7/netlink.7 @@ -478,7 +478,7 @@ errors. .\"Author: Pablo Nei

Re: [patch] netlink.7: srcfix Change buffer size in example code about reading netlink message.

2017-08-15 Thread Michael Kerrisk (man-pages)
On 11/14/2016 11:36 PM, Rick Jones wrote: >> Lets change the example so others don't propagate the problem further. >> >> Signed-off-by David Wilder >> >> --- man7/netlink.7.orig 2016-11-14 13:30:36.522101156 -0800 >> +++ man7/netlink.7 2016-11-14 13:

Re: [patch] netlink.7: srcfix Change buffer size in example code about reading netlink message.

2017-08-15 Thread Michael Kerrisk (man-pages)
On 11/14/2016 11:20 PM, dwilder wrote: > The example code in netlink(7) (for reading netlink message) suggests > using > a 4k read buffer with recvmsg. This can cause truncated messages on > systems > using a page size is >4096. Please see: > linux/include/linux/netlink.h

Re: [patch] netlink.7: srcfix Change buffer size in example code about reading netlink message.

2016-11-14 Thread Rick Jones
Lets change the example so others don't propagate the problem further. Signed-off-by David Wilder --- man7/netlink.7.orig 2016-11-14 13:30:36.522101156 -0800 +++ man7/netlink.7 2016-11-14 13:30:51.002086354 -0800 @@ -511,7 +511,7 @@ .in +4n .nf int len; -char buf[4096]; +char buf

[patch] netlink.7: srcfix Change buffer size in example code about reading netlink message.

2016-11-14 Thread dwilder
The example code in netlink(7) (for reading netlink message) suggests using a 4k read buffer with recvmsg. This can cause truncated messages on systems using a page size is >4096. Please see: linux/include/linux/netlink.h (in the kernel source) /* * skb should fit one page. T

Re: [PATCH] netlink.7: describe netlink socket options

2016-06-12 Thread Michael Kerrisk (man-pages)
Hi Andrey, On 06/10/2016 10:28 PM, Andrey Vagin wrote: > Cc: Kir Kolyshkin > Cc: Michael Kerrisk > Cc: Herbert Xu > Cc: Patrick McHardy > Cc: Christophe Ricard > Cc: Nicolas Dichtel > Signed-off-by: Andrey Vagin > --

[PATCH] netlink.7: describe netlink socket options

2016-06-10 Thread Andrey Vagin
Cc: Kir Kolyshkin Cc: Michael Kerrisk Cc: Herbert Xu Cc: Patrick McHardy Cc: Christophe Ricard Cc: Nicolas Dichtel Signed-off-by: Andrey Vagin --- man7/netlink.7 | 75 ++ 1 file changed, 75 insertions(+) diff --git a/man7/netlink.7 b

netlink.7

2006-01-19 Thread Hasso Tepper
After seeing yet another project which had pointers in the code comments to the false statements in the netlink.7 man page, I decided to spend some time on improving man page. Comments and improvements are welcome especially regarding TODO's, XXX's and FIME's in the page. -

[NETLINK 7/10]: Return -EPROTONOSUPPORT in netlink_create() if no kernel socket is registered

2005-08-14 Thread Patrick McHardy
[NETLINK]: Return -EPROTONOSUPPORT in netlink_create() if no kernel socket is registered This is necessary for dynamic number of netlink groups to make sure we know the number of possible groups before bind() is called. With this change pure userspace communication using unused netlink protocols

[NETLINK 7/8]: Add set/getsockopt options to support more than 32 groups

2005-08-12 Thread Patrick McHardy
[NETLINK]: Add set/getsockopt options to support more than 32 groups NETLINK_ADD_MEMBERSHIP/NETLINK_DROP_MEMBERSHIP are used to join/leave groups, NETLINK_PKTINFO is used to enable nl_pktinfo control messages for received packets to get the extended destination group number. Signed-off-by: Patri