
kaber at trash
Sep 3, 2007, 3:06 AM
Post #4 of 13
(1570 views)
Permalink
|
|
Re: [PATCH 1/3] libnl: add netfilter support
[In reply to]
|
|
Thomas Graf wrote: > * Patrick McHardy <kaber [at] trash> 2007-09-03 11:50 > >>Philip Craig wrote: >> >>>+#define NFA_NEST(skb, type) \ >>>+({ struct nfattr *__start = (struct nfattr *)skb_tail_pointer(skb); \ >>>+ NFA_PUT(skb, (NFNL_NFA_NEST | type), 0, NULL); \ >>>+ __start; }) >> >> >>The latest libnetfilter_conntrack version doesn't send the NFA_NEST >>bit to the kernel anymore since we intend to get rid of it, at >>least on the receive side. Please change this to not send it here >>as well. > > > Great, so basically the attribute interfaces could be merged on the > sending side. Yes, hopefully. We're using big endian for numeric values, but that shouldn't be a problem I think. > I think I can live with checking for the bit on the receiving side, > the only problem it could cause is when the attribute type is used > to encode information such as a port number. So if we are willing > to take that risk the receiving path could be merged as well. That kind of information should be stored as attribute value, no?
|