<div dir="ltr">Exactly,<br><br> <br>But how can I access .val atributes?<br> I tried: <br><br>packet = event.parsed<br>packet_tcp = packet.find("tcp")<br>if(packet_tcp):<br> <br> tcp_raw = tcp_opt.val<br>
<br><br>But it returns: line 29, in _handle_PacketIn<br>tcp_options = tcp_opt.val<br>AttributeError: class tcp_opt has no attribute 'val'<br><br>It works with the tcp_opt constants, such as: EOL, SACK, etc.<br><br>
Am I doing something wrong?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/26 Murphy McCauley <span dir="ltr"><<a href="mailto:murphy.mccauley@gmail.com" target="_blank">murphy.mccauley@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When the packet library parses it, it should end up in the TCP object's .options collection. The packet library doesn't currently have support for MPTCP, so I think it should just end up with the raw bytes in the tcp_opt object's .val attribute.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Murphy<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Dec 25, 2013, at 6:45 PM, Marcus Sandri <<a href="mailto:mwws55@gmail.com">mwws55@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> I've working with MPTCP protocol and I need access the OPTIONS field from TCP protocol. How can I access the OPTIONS field, using tcp_opt class?<br>
><br>
><br>
><br>
> cheers,<br>
> marcus.<br>
<br>
</div></div></blockquote></div><br></div>