Re: [PATCH RFC 1/1] xfrm: dst lookup doesn't account for fwmark

2016-08-16 Thread Doug Applegate
undle_create(struct xfrm_policy *policy, if (xfrm[i]->props.mode != XFRM_MODE_TRANSPORT) { family = xfrm[i]->props.family; - dst = xfrm_dst_lookup(xfrm[i], tos, fl->flowi_oif, + dst = xfrm_dst_lookup(xfrm[i], fl, &saddr, &daddr, family); err = PTR_ERR(dst); if (IS_ERR(dst

Re: [PATCH RFC 0/1] xfrm: dst lookup doesn't account for fwmark

2016-08-16 Thread Doug Applegate
we need it down the line. Thanks! Doug On Wed, Jul 27, 2016 at 11:20 PM, Steffen Klassert wrote: > On Fri, Jul 22, 2016 at 03:50:30PM -0600, Doug Applegate wrote: >> I ran into an issue trying to route outgoing ipsec traffic from an >> ipsec responder hub that uses fwmark to rou

[PATCH RFC 1/1] xfrm: dst lookup doesn't account for fwmark

2016-07-22 Thread Doug Applegate
If route table includes routing based on fwmark, xfrm will not take it into account when routing ipsec traffic. We address this issue by adding fwmark information before calling route lookup. Signed-off-by: Doug Applegate --- include/net/xfrm.h | 3 ++- net/ipv4/xfrm4_policy.c | 15

[PATCH RFC 0/1] xfrm: dst lookup doesn't account for fwmark

2016-07-22 Thread Doug Applegate
I ran into an issue trying to route outgoing ipsec traffic from an ipsec responder hub that uses fwmark to route out a specific interface. The fwmark points to a route table that contains a default route out a specific interface. The fwmark is applied based on incoming interface of incoming traffi