netdev
[Top] [All Lists]

Re: NLMSG_* macros (was: Re: ULOG comments)

To: Andi Kleen <ak@xxxxxx>
Subject: Re: NLMSG_* macros (was: Re: ULOG comments)
From: Jan Echternach <echter@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Aug 2000 12:57:38 +0200
Cc: netfilter@xxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20000816122650.48683@colin.muc.de>; from ak@muc.de on Wed, Aug 16, 2000 at 12:26:50PM +0200
Mail-followup-to: Andi Kleen <ak@xxxxxx>, netfilter@xxxxxxxxx, netdev@xxxxxxxxxxx
References: <20000811162634.A3814@hokkaido.informatik.uni-rostock.de> <Pine.LNX.4.10.10008120119370.13569-100000@blackbird.intercode.com.au> <20000815175225.B26543@hokkaido.informatik.uni-rostock.de> <20000815181812.A5358@fred.muc.de> <20000815182512.D26543@hokkaido.informatik.uni-rostock.de> <20000815224633.53823@colin.muc.de> <20000816122231.A21914@hokkaido.informatik.uni-rostock.de> <20000816122650.48683@colin.muc.de>
Reply-to: Jan Echternach <jan.echternach@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
On Wed, Aug 16, 2000 at 12:26:50PM +0200, Andi Kleen wrote:
> nlmsghdr has other uses than just handling multipart messages. For 
> examples it gives you a sequence number so that you can try to detect
> lost packets and a way to request acks.
> netlink sockets require a nlmsghdr

NETLINK_NFLOG packets originate in the kernel.  Packet loss is signaled
by ENOBUFS, and resending of packets is impossible unless the kernel is
willing to eat huge amounts of memory before finally stopping all
networking whenever an application decides to stop reading from the
socket.

> > Should NLMSG_* be used on the new NETLINK_NFLOG socket?
> 
> Definitely. 

Ok, I'll use NLMSG_* for my iptables targets, because I'm out of
arguments against it, even though I still don't see how any feature of
nlmsghdr could be used by NETFILTER_NFLOG that isn't provided by a
plain C structure in a simpler way.

-- 
Jan

<Prev in Thread] Current Thread [Next in Thread>