Skip to contentSkip to conversation

MIP6: Ignore mobility headers if it is rejected.

PATCH In review Masahide NAKAMURA 1 participant 1 message Jul 29, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 18/20 MIP6: Ignore mobility headers if it is rejected.

Ignore mobility headers if it is rejected by route optimization. Mobility headers should be bypassed for any route optimization and application should use transformation policy and wild-card states corerctly to catch mobility headers prior than other packets.
This case which such reject is occurred may be either missing poilcy or erroneous policy is inserted to kernel.
Based on MIPL2 kernel patch.

---
 net/ipv6/mip6.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
net/ipv6/mip6.c +3 -0
index fb973d9..43d0b53 100644
@@ -243,6 +243,9 @@ static int mip6_destopt_reject(struct xf
 	struct timeval stamp;
 	int err = 0;
 
+	if (unlikely(fl->proto == IPPROTO_MH && fl->fl_mh_type <= IP6_MH_TYPE_MAX))
+		goto out;
+
 	if (likely(opt->dsthao)) {
 		offset = ipv6_find_tlv(skb, opt->dsthao, IPV6_TLV_HAO);
 		if (likely(offset >= 0))
Signature · 1 line
1.4.1