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

Reply via email to