Easy to access to the data that the library can't parse.
Signed-off-by: FUJITA Tomonori <[email protected]>
---
ryu/lib/packet/packet.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ryu/lib/packet/packet.py b/ryu/lib/packet/packet.py
index c7963af..11881e7 100644
--- a/ryu/lib/packet/packet.py
+++ b/ryu/lib/packet/packet.py
@@ -34,6 +34,9 @@ class Packet(object):
self.parsed_bytes += proto.length
self.protocols.append(proto)
+ if len(self.data) > self.parsed_bytes:
+ self.protocols.append(self.data[self.parsed_bytes:])
+
def serialize(self):
self.data = bytearray()
r = self.protocols[::-1]
--
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