[pox-dev] Parsing TCP payload in POX

Ramana Reddy gtvrreddy at gmail.com
Thu Oct 8 11:24:09 PDT 2015


Its working fine.

Thanks.

On Thu, Oct 8, 2015 at 10:38 PM, Ramana Reddy <gtvrreddy at gmail.com> wrote:

> 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/6f7053f9/attachment.html>


More information about the pox-dev mailing list