Re: pf state key link inp

2017-12-23 Thread Alexandr Nedvedicky
Hello, > ok? sure, no objections/comments OK sashan@

pf state key link inp

2017-12-22 Thread Alexander Bluhm
Hi, There is a corner case where linking the inp to the state key does not work in pf. The function pf_inp_link() takes the state key from the mbuf and not the one we have just found. Introduce a new function pf_state_key_link_inpcb() that does exactly that together with some sanity checks. I

Re: pf state key link

2016-12-28 Thread Alexandr Nedvedicky
Hello, On Fri, Dec 23, 2016 at 04:21:09PM +0100, Alexander Bluhm wrote: > Hi, > > Christiano Haesbaert has sent me this diff. > > They are setting pkt_sk to NULL if pkt_sk->reverse is not > > pf_statek_key_isvalid(), but the chunk that creates the pkt_sk->reverse

pf state key link

2016-12-23 Thread Alexander Bluhm
Hi, Christiano Haesbaert has sent me this diff. They are setting pkt_sk to NULL if pkt_sk->reverse is not pf_statek_key_isvalid(), but the chunk that creates the pkt_sk->reverse link actually depends on pkt_sk != NULL. I