Re: [6/*] [IPSEC] Fix xfrm[46]_update_pmtu to update top dst
From: "David S. Miller" <davem@davemloft.net>
Date: 2005-03-07 05:35:02
From: "David S. Miller" <davem@davemloft.net>
Date: 2005-03-07 05:35:02
On Wed, 16 Feb 2005 22:08:42 +1100 Herbert Xu [off-list ref] wrote:
Let's also fix IPsec PMTU storage. When we get an MTU update for an xfrm_dst, it should be done to the top dst, not the bottom dst. For example, when we get a need-to-frag message for host C behind a our IPsec peer B, we should be updating the dst entry for C and not B as we do now. I've removed the boundary checks since the same checks are done in ipv[46]/route.c already. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Applied, thanks Herbert. Note that sometimes it is better to replace an "unnecessary as determined by me" boundary check with a BUG() instead of outright removal. That way you get to test your assertion :)