[pox-dev] Parsing TCP payload in POX

Ramana Reddy gtvrreddy at gmail.com
Thu Oct 8 10:08:00 PDT 2015


Hi All,

The following code is not displaying ASCII output properly.

 def _handle_PacketIn (self, event):
    """
    Handle packet in messages from the switch to implement above algorithm.
    """

    packet = event.parsed
    tcp = packet.find('tcp')
    if tcp:
        log.debug("payload: %s", tcp.payload)

Note: I tried even tcp.payload.decode("utf-8") also. Same problem.

Thanks,
Ramana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20151008/d361b78e/attachment.htm>


More information about the pox-dev mailing list