Hi, I want to implement an IP-IP encapsulation/decapsulation scenarion. For the encap part, I create an Ethernet frame as well as an IPv4 datagram and I encapsulate in its payload the received packet:
tmp = ethernet(src=EthAddr("00:00:00:00:00:20"),
dst=EthAddr("00:00:00:00:00:21"),
type=ethernet.IP_TYPE,
payload=ipv4(srcip=source,
dstip=destination,
protocol=ipv4.IPv4,
payload=packet.next))
However, how can I reverse the process, remove the header and get they old IP
packet back?
