[pox-dev] IP-IP Encap Decap

Alex Nelson alex_under33 at yahoo.com
Tue Nov 5 23:28:51 PST 2013


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20131105/ad279f90/attachment.htm>


More information about the pox-dev mailing list