we have two gateways (GW-A(linux2.6.18)),GW-B(linux 2.6.18)) and one router(R(freeBSD mechine)) in between them.
IPSEC Policies at both the gateways:
GW-A(ESP)( Inbount :A<-B, Outbound:A->R(router) )
I am running UDP server at GW-B,UDP client at GW-A and sending UDP packets with Router Extension header from GW-A->R->GW-B.
I monitered the packets at R(router), there are two type of packets I observed,
1. packests with IPv6 header + ESP header (without Router header)and
2. Packets are with IPv6 header + Router Extension header (without ESP header)
Moreover the packets are not forwarding to GW-B even though I enabled IPV6 forwarding.
In Router header,I filled option type 0.