With this, it's easy to know the protocol name.

Signed-off-by: FUJITA Tomonori <[email protected]>
---
 ryu/lib/packet/packet_base.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ryu/lib/packet/packet_base.py b/ryu/lib/packet/packet_base.py
index 2096458..437678b 100644
--- a/ryu/lib/packet/packet_base.py
+++ b/ryu/lib/packet/packet_base.py
@@ -28,6 +28,7 @@ class PacketBase(object):
     def __init__(self):
         super(PacketBase, self).__init__()
         self.length = 0
+        self.protocol_name = self.__class__.__name__
 
     @classmethod
     def parser(cls):
-- 
1.7.4.4


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to