[support] How to prevent routing header option from being used

Romain KUNTZ kuntz at lsiit.u-strasbg.fr
Fri Oct 10 23:19:03 JST 2008


Hi Brian,

On 2008/10/10, at 0:37, Millar, Brian H. wrote:
> I tried the suggestions you had below, but they resulted in the MR
> complaining that the HA is unable to handle the binding.

Could you post the HA logs please? I suspect the HA not to be able to  
install the policies which result in rejecting the BU.

> I've tried a couple of different combinations of the code snippets  
> below
> and they all resulted in similar errors.
>
> Also, I am running with the MCoA patches in, and did notice that some
> the code changes you suggested did included mcoa references.

Note that if you run with the MCoA patches and use MCoA, then packets  
are supposed to be always reverse-tunneled.

> I created the following patch, and tried to change both things you
> suggested and also tried just your first suggestion.

I cannot test it on my testbed at the moment, as I'm quite busy for  
others things. But I have posted some comments inline below, pleae  
have a look. Also, if you post the HA logs, I may be able to guide you.

> diff -Naur mipv6-daemon-umip-0.4/src/xfrm.c
> mipv6-daemon-umip-0.4-ForceRevTun/src/xfrm.c
> --- mipv6-daemon-umip-0.4/src/xfrm.c	2008-09-25 12:14:44.000000000
> -0400
> +++ mipv6-daemon-umip-0.4-ForceRevTun/src/xfrm.c	2008-10-08
> 08:29:21.000000000 -0400
> @@ -1513,11 +1513,18 @@
> 	struct xfrm_selector sel;
>
> 	/* MN - CN case data out & in */
> -	create_rh_tmpl(&tmpl);
> +/* ForceRevTun patch 10/8/2009
> +*	create_rh_tmpl(&tmpl);
> +*	set_selector(peer_addr, our_addr, 0, 0, 0, 0, &sel);
> +*	if (xfrm_mip_policy_add(&sel, replace, XFRM_POLICY_OUT,
> XFRM_POLICY_ALLOW,
> +*				MIP6_PRIO_RO_BCE_DATA, &tmpl, 1))
> +*		return -1;
> + */
> 	set_selector(peer_addr, our_addr, 0, 0, 0, 0, &sel);
> 	if (xfrm_mip_policy_add(&sel, replace, XFRM_POLICY_OUT,
> XFRM_POLICY_ALLOW,
> -				MIP6_PRIO_RO_BCE_DATA, &tmpl, 1))
> +				MIP6_PRIO_RO_BCE_DATA, NULL, 1))

This should be 0 instead of 1 here in the last argument of the  
function. This number tells how many templates are in "tmpl", but as  
you give "NULL" as argument, you must set this number to 0.

Cheers,
romain



More information about the Support mailing list