diff options
author | 2015-08-26 14:27:43 +0300 | |
---|---|---|
committer | 2015-08-26 14:27:43 +0300 | |
commit | cdcc62972d42f009f55e6aeb2ca5c60c3acd75eb (patch) | |
tree | 5c3fef81ac01407a89740f2d9b8b01b0f3a47c7f /scripts/automation/trex_control_plane/python_lib/dpkt-1.8.6.2/dpkt/pim.py | |
parent | 42053c95419042f36242b19d2416d112f7643e14 (diff) |
added dpkt package, initial stateless client implementation
Diffstat (limited to 'scripts/automation/trex_control_plane/python_lib/dpkt-1.8.6.2/dpkt/pim.py')
-rw-r--r-- | scripts/automation/trex_control_plane/python_lib/dpkt-1.8.6.2/dpkt/pim.py | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/scripts/automation/trex_control_plane/python_lib/dpkt-1.8.6.2/dpkt/pim.py b/scripts/automation/trex_control_plane/python_lib/dpkt-1.8.6.2/dpkt/pim.py deleted file mode 100644 index 6cd16a42..00000000 --- a/scripts/automation/trex_control_plane/python_lib/dpkt-1.8.6.2/dpkt/pim.py +++ /dev/null @@ -1,46 +0,0 @@ -# $Id: pim.py 23 2006-11-08 15:45:33Z dugsong $ -# -*- coding: utf-8 -*- -"""Protocol Independent Multicast.""" - -import dpkt -from decorators import deprecated - - -class PIM(dpkt.Packet): - __hdr__ = ( - ('v_type', 'B', 0x20), - ('rsvd', 'B', 0), - ('sum', 'H', 0) - ) - - @property - def v(self): return self.v_type >> 4 - - @v.setter - def v(self, v): self.v_type = (v << 4) | (self.v_type & 0xf) - - @property - def type(self): return self.v_type & 0xf - - @type.setter - def type(self, type): self.v_type = (self.v_type & 0xf0) | type - - # Deprecated methods, will be removed in the future - # ================================================= - @deprecated - def _get_v(self): return self.v - - @deprecated - def _set_v(self, v): self.v = v - - @deprecated - def _get_type(self): return self.type - - @deprecated - def _set_type(self, type): self.type = type - # ================================================= - - def __str__(self): - if not self.sum: - self.sum = dpkt.in_cksum(dpkt.Packet.__str__(self)) - return dpkt.Packet.__str__(self) |