[PATCH RFC 1/7] netfilter: add socket to struct nft_pktinfo

2015-09-29 Thread Daniel Mack
The high-level netfilter hook API already enables users to pass a socket, but that information is lost when the chains are walked. In order to let internal eval callbacks use the passed filter rather than skb->sk, add a pointer of type 'struct sock' to 'struct nft_pktinfo' and set that field via

Re: [PATCH RFC 1/7] netfilter: add socket to struct nft_pktinfo

2015-09-29 Thread Eric W. Biederman
Daniel Mack writes: > The high-level netfilter hook API already enables users to pass a socket, > but that information is lost when the chains are walked. > > In order to let internal eval callbacks use the passed filter rather than > skb->sk, add a pointer of type 'struct