Thanks for pointing out the inconsistency. This should be fixed.
On Jul 28, 2008, at 5:12 PM, Glen Gibb wrote:
> Hi all,
>
> I notice that the format of fields in the flow dictionary/object
> appears
> different in Flow_in versus Flow_expiry in Python.
>
> In Flow_in, if I do a "print event.flow" I get:
> {'dl_type': 2054, 'nw_dst': 2873313822L, 'dl_src': 345045179815L,
> 'nw_proto': 0, 'tp_dst': 0, 'tp_src': 0, 'dl_dst': 2199023255553L,
> 'dl_vlan': 65535, 'nw_src': 2873313811L, 'in_port': 1}
>
> In this case, fields such as nw_dst are longs.
>
> Whereas, if I do the "print event.flow" in Flow_expiry I get:
> {'dl_type': 2048, 'nw_dst': '\xabCJ\x1c', 'dl_src':
> '\x00\xd0\x05\x8e\xa4\x00', 'nw_proto': 1, 'tp_dst': 0, 'tp_src': 0,
> 'dl_dst': '\x00\xca\xfe\x00\x00\x01', 'dl_vlan': 65535, 'nw_src':
> '\xabCJ\x11', 'in_port': 0}
> In this case, fields such as nw_dst are strings.
>
> Glen
>
> _______________________________________________
> nox-dev mailing list
> [email protected]
> http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org