Re: [Swan-dev] mystery in linux/net/ipsec/ipsec_rcv.c

2018-06-30 Thread D. Hugh Redelmeier
| From: Paul Wouters | > If I'm not wrong, why have we not noticed this since it was introduced | > by c90c46be434cc0a68a8f5e1b0e88a9d019a9f733 in 2010? | | I don't know, but I do see this code is within | sysctl_ipsec_inbound_policy_check, and I do have some vague memory of | people needing to

Re: [Swan-dev] mystery in linux/net/ipsec/ipsec_rcv.c

2018-06-30 Thread Paul Wouters
On Sat, 30 Jun 2018, D. Hugh Redelmeier wrote: (This is kernel code so my understanding of it is limited.) There are two copies of this code fragment: if (((struct sockaddr_in6*)(ipsp->ips_addr_s))->sin6_family == AF_INET6) psin6 = (s

[Swan-dev] mystery in linux/net/ipsec/ipsec_rcv.c

2018-06-30 Thread D. Hugh Redelmeier
(This is kernel code so my understanding of it is limited.) There are two copies of this code fragment: if (((struct sockaddr_in6*)(ipsp->ips_addr_s))->sin6_family == AF_INET6) psin6 = (struct sockaddr_in6*)(ipsp->ips_addr_s);