Content-type: text/html
ESPReflect()
ESPReflect element do the following operation to the packets come from the input port. Unset RB bit; Set EXEC_SEND bit to be the value of the ESEC_RECV bit; and then rechecksum the ESP packet.If it is a piggyback ESP packet, rechecksum the IP header.
ESPReflect only have one output port.
ESPReflect don't switch the src address and dst address of the IP header. So you should use IPMirror element to switch IP src and dst address. Another ESP element, ESPReflectCombo(n) will do reflecting and switch the IP src and dst address at the same time.
ESPReflect only handle ESP packets.All the packets pass through this element must be ESP packet with ESP annotation set. That is to say, the packet must came from the output 1 or output 2 of IPESPSwitch(n)
In most cases, ESPReflect will be used like the following example,
->IPESPSwitch;
IPESPSwitch[1] -> ESPReflect //ESP Packet.
-> IPMirror
-> ... //Reroute the packet.
IPESPSwitch[0] -> ... //Other packets follow the orginal path