you can do something like: if arp.arp in Packet(msg.data):
Signed-off-by: FUJITA Tomonori <fujita.tomon...@lab.ntt.co.jp> --- ryu/lib/packet/packet_base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ryu/lib/packet/packet_base.py b/ryu/lib/packet/packet_base.py index b0aeca0..6525664 100644 --- a/ryu/lib/packet/packet_base.py +++ b/ryu/lib/packet/packet_base.py @@ -80,3 +80,7 @@ class PacketBase(object): For example, *prev* is ipv4 or ipv6 for tcp.serialize. """ pass + + def __eq__(self, other): + if self.__class__ == other: + return True -- 1.7.12.4 (Apple Git-37) ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel