import tinyos.message.Message
# The default size of this message type in bytes.
-DEFAULT_MESSAGE_SIZE = 32
+DEFAULT_MESSAGE_SIZE = 35
# The Active Message type associated with this message.
AM_TYPE = -1
class UdpReport(tinyos.message.Message.Message):
- # Create a new UdpReport of size 32.
- def __init__(self, data="", addr=None, gid=None, base_offset=0, data_length=32):
+ # Create a new UdpReport of size 35.
+ def __init__(self, data="", addr=None, gid=None, base_offset=0, data_length=35):
tinyos.message.Message.Message.__init__(self, data, addr, gid, base_offset, data_length)
self.amTypeSet(AM_TYPE)
def __str__(self):
s = "Message <UdpReport> \n"
try:
- s += " [udp.total=0x%x]\n" % (self.get_udp_total())
+ s += " [ip.sent=0x%x]\n" % (self.get_ip_sent())
except:
pass
try:
- s += " [udp.failed=0x%x]\n" % (self.get_udp_failed())
+ s += " [ip.forwarded=0x%x]\n" % (self.get_ip_forwarded())
except:
pass
try:
- s += " [udp.seqno=0x%x]\n" % (self.get_udp_seqno())
+ s += " [ip.rx_drop=0x%x]\n" % (self.get_ip_rx_drop())
except:
pass
try:
- s += " [udp.sender=0x%x]\n" % (self.get_udp_sender())
+ s += " [ip.tx_drop=0x%x]\n" % (self.get_ip_tx_drop())
except:
pass
try:
- s += " [icmp.rx=0x%x]\n" % (self.get_icmp_rx())
+ s += " [ip.fw_drop=0x%x]\n" % (self.get_ip_fw_drop())
+ except:
+ pass
+ try:
+ s += " [ip.rx_total=0x%x]\n" % (self.get_ip_rx_total())
+ except:
+ pass
+ try:
+ s += " [ip.real_drop=0x%x]\n" % (self.get_ip_real_drop())
+ except:
+ pass
+ try:
+ s += " [ip.hlim_drop=0x%x]\n" % (self.get_ip_hlim_drop())
+ except:
+ pass
+ try:
+ s += " [ip.senddone_el=0x%x]\n" % (self.get_ip_senddone_el())
+ except:
+ pass
+ try:
+ s += " [ip.fragpool=0x%x]\n" % (self.get_ip_fragpool())
+ except:
+ pass
+ try:
+ s += " [ip.sendinfo=0x%x]\n" % (self.get_ip_sendinfo())
+ except:
+ pass
+ try:
+ s += " [ip.sendentry=0x%x]\n" % (self.get_ip_sendentry())
+ except:
+ pass
+ try:
+ s += " [ip.sndqueue=0x%x]\n" % (self.get_ip_sndqueue())
+ except:
+ pass
+ try:
+ s += " [ip.encfail=0x%x]\n" % (self.get_ip_encfail())
except:
pass
try:
- s += " [route.parent.flags=0x%x]\n" % (self.get_route_parent_flags())
+ s += " [ip.heapfree=0x%x]\n" % (self.get_ip_heapfree())
except:
pass
try:
- s += " [route.parent.hops=0x%x]\n" % (self.get_route_parent_hops())
+ s += " [udp.total=0x%x]\n" % (self.get_udp_total())
+ except:
+ pass
+ try:
+ s += " [udp.failed=0x%x]\n" % (self.get_udp_failed())
except:
pass
try:
- s += " [route.parent.neighbor=0x%x]\n" % (self.get_route_parent_neighbor())
+ s += " [udp.seqno=0x%x]\n" % (self.get_udp_seqno())
except:
pass
try:
- s += " [route.parent.costEstimate=0x%x]\n" % (self.get_route_parent_costEstimate())
+ s += " [udp.sender=0x%x]\n" % (self.get_udp_sender())
except:
pass
try:
- s += " [route.parent.linkEstimate=0x%x]\n" % (self.get_route_parent_linkEstimate())
+ s += " [icmp.rx=0x%x]\n" % (self.get_icmp_rx())
except:
pass
try:
- s += " [route.parent.rssiEstimate=0x%x]\n" % (self.get_route_parent_rssiEstimate())
+ s += " [route.hop_limit=0x%x]\n" % (self.get_route_hop_limit())
except:
pass
try:
- s += " [route.parent.stats.success=";
- for i in range(0, 2):
- s += "0x%x " % (self.getElement_route_parent_stats_success(i) & 0xff)
- s += "]\n";
+ s += " [route.parent=0x%x]\n" % (self.get_route_parent())
except:
pass
try:
- s += " [route.parent.stats.total=";
- for i in range(0, 2):
- s += "0x%x " % (self.getElement_route_parent_stats_total(i) & 0xff)
- s += "]\n";
+ s += " [route.parent_metric=0x%x]\n" % (self.get_route_parent_metric())
except:
pass
try:
- s += " [route.parent.stats.receptions=";
- for i in range(0, 2):
- s += "0x%x " % (self.getElement_route_parent_stats_receptions(i) & 0xff)
- s += "]\n";
+ s += " [route.parent_etx=0x%x]\n" % (self.get_route_parent_etx())
except:
pass
return s
# Message-type-specific access methods appear below.
#
- # Accessor methods for field: udp.total
+ # Accessor methods for field: ip.sent
# Field type: int
# Offset (bits): 0
# Size (bits): 16
#
#
- # Return whether the field 'udp.total' is signed (False).
+ # Return whether the field 'ip.sent' is signed (False).
#
- def isSigned_udp_total(self):
+ def isSigned_ip_sent(self):
return False
#
- # Return whether the field 'udp.total' is an array (False).
+ # Return whether the field 'ip.sent' is an array (False).
#
- def isArray_udp_total(self):
+ def isArray_ip_sent(self):
return False
#
- # Return the offset (in bytes) of the field 'udp.total'
+ # Return the offset (in bytes) of the field 'ip.sent'
#
- def offset_udp_total(self):
+ def offset_ip_sent(self):
return (0 / 8)
#
- # Return the offset (in bits) of the field 'udp.total'
+ # Return the offset (in bits) of the field 'ip.sent'
#
- def offsetBits_udp_total(self):
+ def offsetBits_ip_sent(self):
return 0
#
- # Return the value (as a int) of the field 'udp.total'
+ # Return the value (as a int) of the field 'ip.sent'
#
- def get_udp_total(self):
- return self.getUIntElement(self.offsetBits_udp_total(), 16, 1)
+ def get_ip_sent(self):
+ return self.getUIntElement(self.offsetBits_ip_sent(), 16, 1)
#
- # Set the value of the field 'udp.total'
+ # Set the value of the field 'ip.sent'
#
- def set_udp_total(self, value):
- self.setUIntElement(self.offsetBits_udp_total(), 16, value, 1)
+ def set_ip_sent(self, value):
+ self.setUIntElement(self.offsetBits_ip_sent(), 16, value, 1)
#
- # Return the size, in bytes, of the field 'udp.total'
+ # Return the size, in bytes, of the field 'ip.sent'
#
- def size_udp_total(self):
+ def size_ip_sent(self):
return (16 / 8)
#
- # Return the size, in bits, of the field 'udp.total'
+ # Return the size, in bits, of the field 'ip.sent'
#
- def sizeBits_udp_total(self):
+ def sizeBits_ip_sent(self):
return 16
#
- # Accessor methods for field: udp.failed
+ # Accessor methods for field: ip.forwarded
# Field type: int
# Offset (bits): 16
# Size (bits): 16
#
#
- # Return whether the field 'udp.failed' is signed (False).
+ # Return whether the field 'ip.forwarded' is signed (False).
#
- def isSigned_udp_failed(self):
+ def isSigned_ip_forwarded(self):
return False
#
- # Return whether the field 'udp.failed' is an array (False).
+ # Return whether the field 'ip.forwarded' is an array (False).
#
- def isArray_udp_failed(self):
+ def isArray_ip_forwarded(self):
return False
#
- # Return the offset (in bytes) of the field 'udp.failed'
+ # Return the offset (in bytes) of the field 'ip.forwarded'
#
- def offset_udp_failed(self):
+ def offset_ip_forwarded(self):
return (16 / 8)
#
- # Return the offset (in bits) of the field 'udp.failed'
+ # Return the offset (in bits) of the field 'ip.forwarded'
#
- def offsetBits_udp_failed(self):
+ def offsetBits_ip_forwarded(self):
return 16
#
- # Return the value (as a int) of the field 'udp.failed'
+ # Return the value (as a int) of the field 'ip.forwarded'
#
- def get_udp_failed(self):
- return self.getUIntElement(self.offsetBits_udp_failed(), 16, 1)
+ def get_ip_forwarded(self):
+ return self.getUIntElement(self.offsetBits_ip_forwarded(), 16, 1)
#
- # Set the value of the field 'udp.failed'
+ # Set the value of the field 'ip.forwarded'
#
- def set_udp_failed(self, value):
- self.setUIntElement(self.offsetBits_udp_failed(), 16, value, 1)
+ def set_ip_forwarded(self, value):
+ self.setUIntElement(self.offsetBits_ip_forwarded(), 16, value, 1)
#
- # Return the size, in bytes, of the field 'udp.failed'
+ # Return the size, in bytes, of the field 'ip.forwarded'
#
- def size_udp_failed(self):
+ def size_ip_forwarded(self):
return (16 / 8)
#
- # Return the size, in bits, of the field 'udp.failed'
+ # Return the size, in bits, of the field 'ip.forwarded'
#
- def sizeBits_udp_failed(self):
+ def sizeBits_ip_forwarded(self):
return 16
#
- # Accessor methods for field: udp.seqno
- # Field type: int
+ # Accessor methods for field: ip.rx_drop
+ # Field type: short
# Offset (bits): 32
- # Size (bits): 16
+ # Size (bits): 8
#
#
- # Return whether the field 'udp.seqno' is signed (False).
+ # Return whether the field 'ip.rx_drop' is signed (False).
#
- def isSigned_udp_seqno(self):
+ def isSigned_ip_rx_drop(self):
return False
#
- # Return whether the field 'udp.seqno' is an array (False).
+ # Return whether the field 'ip.rx_drop' is an array (False).
#
- def isArray_udp_seqno(self):
+ def isArray_ip_rx_drop(self):
return False
#
- # Return the offset (in bytes) of the field 'udp.seqno'
+ # Return the offset (in bytes) of the field 'ip.rx_drop'
#
- def offset_udp_seqno(self):
+ def offset_ip_rx_drop(self):
return (32 / 8)
#
- # Return the offset (in bits) of the field 'udp.seqno'
+ # Return the offset (in bits) of the field 'ip.rx_drop'
#
- def offsetBits_udp_seqno(self):
+ def offsetBits_ip_rx_drop(self):
return 32
#
- # Return the value (as a int) of the field 'udp.seqno'
+ # Return the value (as a short) of the field 'ip.rx_drop'
#
- def get_udp_seqno(self):
- return self.getUIntElement(self.offsetBits_udp_seqno(), 16, 1)
+ def get_ip_rx_drop(self):
+ return self.getUIntElement(self.offsetBits_ip_rx_drop(), 8, 1)
#
- # Set the value of the field 'udp.seqno'
+ # Set the value of the field 'ip.rx_drop'
#
- def set_udp_seqno(self, value):
- self.setUIntElement(self.offsetBits_udp_seqno(), 16, value, 1)
+ def set_ip_rx_drop(self, value):
+ self.setUIntElement(self.offsetBits_ip_rx_drop(), 8, value, 1)
#
- # Return the size, in bytes, of the field 'udp.seqno'
+ # Return the size, in bytes, of the field 'ip.rx_drop'
#
- def size_udp_seqno(self):
- return (16 / 8)
+ def size_ip_rx_drop(self):
+ return (8 / 8)
#
- # Return the size, in bits, of the field 'udp.seqno'
+ # Return the size, in bits, of the field 'ip.rx_drop'
#
- def sizeBits_udp_seqno(self):
- return 16
+ def sizeBits_ip_rx_drop(self):
+ return 8
#
- # Accessor methods for field: udp.sender
- # Field type: int
- # Offset (bits): 48
- # Size (bits): 16
+ # Accessor methods for field: ip.tx_drop
+ # Field type: short
+ # Offset (bits): 40
+ # Size (bits): 8
#
#
- # Return whether the field 'udp.sender' is signed (False).
+ # Return whether the field 'ip.tx_drop' is signed (False).
#
- def isSigned_udp_sender(self):
+ def isSigned_ip_tx_drop(self):
return False
#
- # Return whether the field 'udp.sender' is an array (False).
+ # Return whether the field 'ip.tx_drop' is an array (False).
#
- def isArray_udp_sender(self):
+ def isArray_ip_tx_drop(self):
return False
#
- # Return the offset (in bytes) of the field 'udp.sender'
+ # Return the offset (in bytes) of the field 'ip.tx_drop'
#
- def offset_udp_sender(self):
- return (48 / 8)
+ def offset_ip_tx_drop(self):
+ return (40 / 8)
#
- # Return the offset (in bits) of the field 'udp.sender'
+ # Return the offset (in bits) of the field 'ip.tx_drop'
#
- def offsetBits_udp_sender(self):
- return 48
+ def offsetBits_ip_tx_drop(self):
+ return 40
#
- # Return the value (as a int) of the field 'udp.sender'
+ # Return the value (as a short) of the field 'ip.tx_drop'
#
- def get_udp_sender(self):
- return self.getUIntElement(self.offsetBits_udp_sender(), 16, 1)
+ def get_ip_tx_drop(self):
+ return self.getUIntElement(self.offsetBits_ip_tx_drop(), 8, 1)
#
- # Set the value of the field 'udp.sender'
+ # Set the value of the field 'ip.tx_drop'
#
- def set_udp_sender(self, value):
- self.setUIntElement(self.offsetBits_udp_sender(), 16, value, 1)
+ def set_ip_tx_drop(self, value):
+ self.setUIntElement(self.offsetBits_ip_tx_drop(), 8, value, 1)
#
- # Return the size, in bytes, of the field 'udp.sender'
+ # Return the size, in bytes, of the field 'ip.tx_drop'
#
- def size_udp_sender(self):
- return (16 / 8)
+ def size_ip_tx_drop(self):
+ return (8 / 8)
#
- # Return the size, in bits, of the field 'udp.sender'
+ # Return the size, in bits, of the field 'ip.tx_drop'
#
- def sizeBits_udp_sender(self):
- return 16
+ def sizeBits_ip_tx_drop(self):
+ return 8
#
- # Accessor methods for field: icmp.rx
- # Field type: int
- # Offset (bits): 64
- # Size (bits): 16
+ # Accessor methods for field: ip.fw_drop
+ # Field type: short
+ # Offset (bits): 48
+ # Size (bits): 8
#
#
- # Return whether the field 'icmp.rx' is signed (False).
+ # Return whether the field 'ip.fw_drop' is signed (False).
#
- def isSigned_icmp_rx(self):
+ def isSigned_ip_fw_drop(self):
return False
#
- # Return whether the field 'icmp.rx' is an array (False).
+ # Return whether the field 'ip.fw_drop' is an array (False).
#
- def isArray_icmp_rx(self):
+ def isArray_ip_fw_drop(self):
return False
#
- # Return the offset (in bytes) of the field 'icmp.rx'
+ # Return the offset (in bytes) of the field 'ip.fw_drop'
#
- def offset_icmp_rx(self):
- return (64 / 8)
+ def offset_ip_fw_drop(self):
+ return (48 / 8)
#
- # Return the offset (in bits) of the field 'icmp.rx'
+ # Return the offset (in bits) of the field 'ip.fw_drop'
#
- def offsetBits_icmp_rx(self):
- return 64
+ def offsetBits_ip_fw_drop(self):
+ return 48
#
- # Return the value (as a int) of the field 'icmp.rx'
+ # Return the value (as a short) of the field 'ip.fw_drop'
#
- def get_icmp_rx(self):
- return self.getUIntElement(self.offsetBits_icmp_rx(), 16, 1)
+ def get_ip_fw_drop(self):
+ return self.getUIntElement(self.offsetBits_ip_fw_drop(), 8, 1)
#
- # Set the value of the field 'icmp.rx'
+ # Set the value of the field 'ip.fw_drop'
#
- def set_icmp_rx(self, value):
- self.setUIntElement(self.offsetBits_icmp_rx(), 16, value, 1)
+ def set_ip_fw_drop(self, value):
+ self.setUIntElement(self.offsetBits_ip_fw_drop(), 8, value, 1)
#
- # Return the size, in bytes, of the field 'icmp.rx'
+ # Return the size, in bytes, of the field 'ip.fw_drop'
#
- def size_icmp_rx(self):
- return (16 / 8)
+ def size_ip_fw_drop(self):
+ return (8 / 8)
#
- # Return the size, in bits, of the field 'icmp.rx'
+ # Return the size, in bits, of the field 'ip.fw_drop'
#
- def sizeBits_icmp_rx(self):
- return 16
+ def sizeBits_ip_fw_drop(self):
+ return 8
#
- # Accessor methods for field: route.parent.flags
+ # Accessor methods for field: ip.rx_total
# Field type: short
- # Offset (bits): 80
+ # Offset (bits): 56
# Size (bits): 8
#
#
- # Return whether the field 'route.parent.flags' is signed (False).
+ # Return whether the field 'ip.rx_total' is signed (False).
#
- def isSigned_route_parent_flags(self):
+ def isSigned_ip_rx_total(self):
return False
#
- # Return whether the field 'route.parent.flags' is an array (False).
+ # Return whether the field 'ip.rx_total' is an array (False).
#
- def isArray_route_parent_flags(self):
+ def isArray_ip_rx_total(self):
return False
#
- # Return the offset (in bytes) of the field 'route.parent.flags'
+ # Return the offset (in bytes) of the field 'ip.rx_total'
#
- def offset_route_parent_flags(self):
- return (80 / 8)
+ def offset_ip_rx_total(self):
+ return (56 / 8)
#
- # Return the offset (in bits) of the field 'route.parent.flags'
+ # Return the offset (in bits) of the field 'ip.rx_total'
#
- def offsetBits_route_parent_flags(self):
- return 80
+ def offsetBits_ip_rx_total(self):
+ return 56
#
- # Return the value (as a short) of the field 'route.parent.flags'
+ # Return the value (as a short) of the field 'ip.rx_total'
#
- def get_route_parent_flags(self):
- return self.getUIntElement(self.offsetBits_route_parent_flags(), 8, 0)
+ def get_ip_rx_total(self):
+ return self.getUIntElement(self.offsetBits_ip_rx_total(), 8, 1)
#
- # Set the value of the field 'route.parent.flags'
+ # Set the value of the field 'ip.rx_total'
#
- def set_route_parent_flags(self, value):
- self.setUIntElement(self.offsetBits_route_parent_flags(), 8, value, 0)
+ def set_ip_rx_total(self, value):
+ self.setUIntElement(self.offsetBits_ip_rx_total(), 8, value, 1)
#
- # Return the size, in bytes, of the field 'route.parent.flags'
+ # Return the size, in bytes, of the field 'ip.rx_total'
#
- def size_route_parent_flags(self):
+ def size_ip_rx_total(self):
return (8 / 8)
#
- # Return the size, in bits, of the field 'route.parent.flags'
+ # Return the size, in bits, of the field 'ip.rx_total'
#
- def sizeBits_route_parent_flags(self):
+ def sizeBits_ip_rx_total(self):
return 8
#
- # Accessor methods for field: route.parent.hops
+ # Accessor methods for field: ip.real_drop
# Field type: short
- # Offset (bits): 88
+ # Offset (bits): 64
# Size (bits): 8
#
#
- # Return whether the field 'route.parent.hops' is signed (False).
+ # Return whether the field 'ip.real_drop' is signed (False).
#
- def isSigned_route_parent_hops(self):
+ def isSigned_ip_real_drop(self):
return False
#
- # Return whether the field 'route.parent.hops' is an array (False).
+ # Return whether the field 'ip.real_drop' is an array (False).
#
- def isArray_route_parent_hops(self):
+ def isArray_ip_real_drop(self):
return False
#
- # Return the offset (in bytes) of the field 'route.parent.hops'
+ # Return the offset (in bytes) of the field 'ip.real_drop'
#
- def offset_route_parent_hops(self):
- return (88 / 8)
+ def offset_ip_real_drop(self):
+ return (64 / 8)
#
- # Return the offset (in bits) of the field 'route.parent.hops'
+ # Return the offset (in bits) of the field 'ip.real_drop'
#
- def offsetBits_route_parent_hops(self):
- return 88
+ def offsetBits_ip_real_drop(self):
+ return 64
#
- # Return the value (as a short) of the field 'route.parent.hops'
+ # Return the value (as a short) of the field 'ip.real_drop'
#
- def get_route_parent_hops(self):
- return self.getUIntElement(self.offsetBits_route_parent_hops(), 8, 0)
+ def get_ip_real_drop(self):
+ return self.getUIntElement(self.offsetBits_ip_real_drop(), 8, 1)
#
- # Set the value of the field 'route.parent.hops'
+ # Set the value of the field 'ip.real_drop'
#
- def set_route_parent_hops(self, value):
- self.setUIntElement(self.offsetBits_route_parent_hops(), 8, value, 0)
+ def set_ip_real_drop(self, value):
+ self.setUIntElement(self.offsetBits_ip_real_drop(), 8, value, 1)
#
- # Return the size, in bytes, of the field 'route.parent.hops'
+ # Return the size, in bytes, of the field 'ip.real_drop'
#
- def size_route_parent_hops(self):
+ def size_ip_real_drop(self):
return (8 / 8)
#
- # Return the size, in bits, of the field 'route.parent.hops'
+ # Return the size, in bits, of the field 'ip.real_drop'
#
- def sizeBits_route_parent_hops(self):
+ def sizeBits_ip_real_drop(self):
return 8
#
- # Accessor methods for field: route.parent.neighbor
- # Field type: int
- # Offset (bits): 96
- # Size (bits): 16
+ # Accessor methods for field: ip.hlim_drop
+ # Field type: short
+ # Offset (bits): 72
+ # Size (bits): 8
#
#
- # Return whether the field 'route.parent.neighbor' is signed (False).
+ # Return whether the field 'ip.hlim_drop' is signed (False).
#
- def isSigned_route_parent_neighbor(self):
+ def isSigned_ip_hlim_drop(self):
return False
#
- # Return whether the field 'route.parent.neighbor' is an array (False).
+ # Return whether the field 'ip.hlim_drop' is an array (False).
#
- def isArray_route_parent_neighbor(self):
+ def isArray_ip_hlim_drop(self):
return False
#
- # Return the offset (in bytes) of the field 'route.parent.neighbor'
+ # Return the offset (in bytes) of the field 'ip.hlim_drop'
#
- def offset_route_parent_neighbor(self):
- return (96 / 8)
+ def offset_ip_hlim_drop(self):
+ return (72 / 8)
#
- # Return the offset (in bits) of the field 'route.parent.neighbor'
+ # Return the offset (in bits) of the field 'ip.hlim_drop'
#
- def offsetBits_route_parent_neighbor(self):
- return 96
+ def offsetBits_ip_hlim_drop(self):
+ return 72
#
- # Return the value (as a int) of the field 'route.parent.neighbor'
+ # Return the value (as a short) of the field 'ip.hlim_drop'
#
- def get_route_parent_neighbor(self):
- return self.getUIntElement(self.offsetBits_route_parent_neighbor(), 16, 0)
+ def get_ip_hlim_drop(self):
+ return self.getUIntElement(self.offsetBits_ip_hlim_drop(), 8, 1)
#
- # Set the value of the field 'route.parent.neighbor'
+ # Set the value of the field 'ip.hlim_drop'
#
- def set_route_parent_neighbor(self, value):
- self.setUIntElement(self.offsetBits_route_parent_neighbor(), 16, value, 0)
+ def set_ip_hlim_drop(self, value):
+ self.setUIntElement(self.offsetBits_ip_hlim_drop(), 8, value, 1)
#
- # Return the size, in bytes, of the field 'route.parent.neighbor'
+ # Return the size, in bytes, of the field 'ip.hlim_drop'
#
- def size_route_parent_neighbor(self):
- return (16 / 8)
+ def size_ip_hlim_drop(self):
+ return (8 / 8)
#
- # Return the size, in bits, of the field 'route.parent.neighbor'
+ # Return the size, in bits, of the field 'ip.hlim_drop'
#
- def sizeBits_route_parent_neighbor(self):
- return 16
+ def sizeBits_ip_hlim_drop(self):
+ return 8
#
- # Accessor methods for field: route.parent.costEstimate
- # Field type: int
- # Offset (bits): 112
- # Size (bits): 16
+ # Accessor methods for field: ip.senddone_el
+ # Field type: short
+ # Offset (bits): 80
+ # Size (bits): 8
#
#
- # Return whether the field 'route.parent.costEstimate' is signed (False).
+ # Return whether the field 'ip.senddone_el' is signed (False).
#
- def isSigned_route_parent_costEstimate(self):
+ def isSigned_ip_senddone_el(self):
return False
#
- # Return whether the field 'route.parent.costEstimate' is an array (False).
+ # Return whether the field 'ip.senddone_el' is an array (False).
#
- def isArray_route_parent_costEstimate(self):
+ def isArray_ip_senddone_el(self):
return False
#
- # Return the offset (in bytes) of the field 'route.parent.costEstimate'
+ # Return the offset (in bytes) of the field 'ip.senddone_el'
#
- def offset_route_parent_costEstimate(self):
- return (112 / 8)
+ def offset_ip_senddone_el(self):
+ return (80 / 8)
#
- # Return the offset (in bits) of the field 'route.parent.costEstimate'
+ # Return the offset (in bits) of the field 'ip.senddone_el'
#
- def offsetBits_route_parent_costEstimate(self):
- return 112
+ def offsetBits_ip_senddone_el(self):
+ return 80
#
- # Return the value (as a int) of the field 'route.parent.costEstimate'
+ # Return the value (as a short) of the field 'ip.senddone_el'
#
- def get_route_parent_costEstimate(self):
- return self.getUIntElement(self.offsetBits_route_parent_costEstimate(), 16, 0)
+ def get_ip_senddone_el(self):
+ return self.getUIntElement(self.offsetBits_ip_senddone_el(), 8, 1)
#
- # Set the value of the field 'route.parent.costEstimate'
+ # Set the value of the field 'ip.senddone_el'
#
- def set_route_parent_costEstimate(self, value):
- self.setUIntElement(self.offsetBits_route_parent_costEstimate(), 16, value, 0)
+ def set_ip_senddone_el(self, value):
+ self.setUIntElement(self.offsetBits_ip_senddone_el(), 8, value, 1)
#
- # Return the size, in bytes, of the field 'route.parent.costEstimate'
+ # Return the size, in bytes, of the field 'ip.senddone_el'
#
- def size_route_parent_costEstimate(self):
- return (16 / 8)
+ def size_ip_senddone_el(self):
+ return (8 / 8)
#
- # Return the size, in bits, of the field 'route.parent.costEstimate'
+ # Return the size, in bits, of the field 'ip.senddone_el'
#
- def sizeBits_route_parent_costEstimate(self):
- return 16
+ def sizeBits_ip_senddone_el(self):
+ return 8
#
- # Accessor methods for field: route.parent.linkEstimate
- # Field type: int
- # Offset (bits): 128
- # Size (bits): 16
+ # Accessor methods for field: ip.fragpool
+ # Field type: short
+ # Offset (bits): 88
+ # Size (bits): 8
#
#
- # Return whether the field 'route.parent.linkEstimate' is signed (False).
+ # Return whether the field 'ip.fragpool' is signed (False).
#
- def isSigned_route_parent_linkEstimate(self):
+ def isSigned_ip_fragpool(self):
return False
#
- # Return whether the field 'route.parent.linkEstimate' is an array (False).
+ # Return whether the field 'ip.fragpool' is an array (False).
#
- def isArray_route_parent_linkEstimate(self):
+ def isArray_ip_fragpool(self):
return False
#
- # Return the offset (in bytes) of the field 'route.parent.linkEstimate'
+ # Return the offset (in bytes) of the field 'ip.fragpool'
#
- def offset_route_parent_linkEstimate(self):
- return (128 / 8)
+ def offset_ip_fragpool(self):
+ return (88 / 8)
#
- # Return the offset (in bits) of the field 'route.parent.linkEstimate'
+ # Return the offset (in bits) of the field 'ip.fragpool'
#
- def offsetBits_route_parent_linkEstimate(self):
- return 128
+ def offsetBits_ip_fragpool(self):
+ return 88
#
- # Return the value (as a int) of the field 'route.parent.linkEstimate'
+ # Return the value (as a short) of the field 'ip.fragpool'
#
- def get_route_parent_linkEstimate(self):
- return self.getUIntElement(self.offsetBits_route_parent_linkEstimate(), 16, 0)
+ def get_ip_fragpool(self):
+ return self.getUIntElement(self.offsetBits_ip_fragpool(), 8, 1)
#
- # Set the value of the field 'route.parent.linkEstimate'
+ # Set the value of the field 'ip.fragpool'
#
- def set_route_parent_linkEstimate(self, value):
- self.setUIntElement(self.offsetBits_route_parent_linkEstimate(), 16, value, 0)
+ def set_ip_fragpool(self, value):
+ self.setUIntElement(self.offsetBits_ip_fragpool(), 8, value, 1)
#
- # Return the size, in bytes, of the field 'route.parent.linkEstimate'
+ # Return the size, in bytes, of the field 'ip.fragpool'
#
- def size_route_parent_linkEstimate(self):
- return (16 / 8)
+ def size_ip_fragpool(self):
+ return (8 / 8)
#
- # Return the size, in bits, of the field 'route.parent.linkEstimate'
+ # Return the size, in bits, of the field 'ip.fragpool'
#
- def sizeBits_route_parent_linkEstimate(self):
- return 16
+ def sizeBits_ip_fragpool(self):
+ return 8
#
- # Accessor methods for field: route.parent.rssiEstimate
- # Field type: int
- # Offset (bits): 144
- # Size (bits): 16
+ # Accessor methods for field: ip.sendinfo
+ # Field type: short
+ # Offset (bits): 96
+ # Size (bits): 8
#
#
- # Return whether the field 'route.parent.rssiEstimate' is signed (False).
+ # Return whether the field 'ip.sendinfo' is signed (False).
#
- def isSigned_route_parent_rssiEstimate(self):
+ def isSigned_ip_sendinfo(self):
return False
#
- # Return whether the field 'route.parent.rssiEstimate' is an array (False).
+ # Return whether the field 'ip.sendinfo' is an array (False).
#
- def isArray_route_parent_rssiEstimate(self):
+ def isArray_ip_sendinfo(self):
return False
#
- # Return the offset (in bytes) of the field 'route.parent.rssiEstimate'
+ # Return the offset (in bytes) of the field 'ip.sendinfo'
#
- def offset_route_parent_rssiEstimate(self):
- return (144 / 8)
+ def offset_ip_sendinfo(self):
+ return (96 / 8)
#
- # Return the offset (in bits) of the field 'route.parent.rssiEstimate'
+ # Return the offset (in bits) of the field 'ip.sendinfo'
#
- def offsetBits_route_parent_rssiEstimate(self):
- return 144
+ def offsetBits_ip_sendinfo(self):
+ return 96
#
- # Return the value (as a int) of the field 'route.parent.rssiEstimate'
+ # Return the value (as a short) of the field 'ip.sendinfo'
#
- def get_route_parent_rssiEstimate(self):
- return self.getUIntElement(self.offsetBits_route_parent_rssiEstimate(), 16, 0)
+ def get_ip_sendinfo(self):
+ return self.getUIntElement(self.offsetBits_ip_sendinfo(), 8, 1)
#
- # Set the value of the field 'route.parent.rssiEstimate'
+ # Set the value of the field 'ip.sendinfo'
#
- def set_route_parent_rssiEstimate(self, value):
- self.setUIntElement(self.offsetBits_route_parent_rssiEstimate(), 16, value, 0)
+ def set_ip_sendinfo(self, value):
+ self.setUIntElement(self.offsetBits_ip_sendinfo(), 8, value, 1)
#
- # Return the size, in bytes, of the field 'route.parent.rssiEstimate'
+ # Return the size, in bytes, of the field 'ip.sendinfo'
#
- def size_route_parent_rssiEstimate(self):
- return (16 / 8)
+ def size_ip_sendinfo(self):
+ return (8 / 8)
#
- # Return the size, in bits, of the field 'route.parent.rssiEstimate'
+ # Return the size, in bits, of the field 'ip.sendinfo'
#
- def sizeBits_route_parent_rssiEstimate(self):
- return 16
+ def sizeBits_ip_sendinfo(self):
+ return 8
#
- # Accessor methods for field: route.parent.stats.success
- # Field type: int[]
- # Offset (bits): 0
- # Size of each element (bits): 16
+ # Accessor methods for field: ip.sendentry
+ # Field type: short
+ # Offset (bits): 104
+ # Size (bits): 8
#
#
- # Return whether the field 'route.parent.stats.success' is signed (False).
+ # Return whether the field 'ip.sendentry' is signed (False).
#
- def isSigned_route_parent_stats_success(self):
+ def isSigned_ip_sendentry(self):
return False
#
- # Return whether the field 'route.parent.stats.success' is an array (True).
+ # Return whether the field 'ip.sendentry' is an array (False).
#
- def isArray_route_parent_stats_success(self):
- return True
+ def isArray_ip_sendentry(self):
+ return False
#
- # Return the offset (in bytes) of the field 'route.parent.stats.success'
+ # Return the offset (in bytes) of the field 'ip.sendentry'
#
- def offset_route_parent_stats_success(self, index1):
- offset = 0
- if index1 < 0 or index1 >= 2:
- raise IndexError
- offset += 160 + index1 * 48
- return (offset / 8)
+ def offset_ip_sendentry(self):
+ return (104 / 8)
#
- # Return the offset (in bits) of the field 'route.parent.stats.success'
+ # Return the offset (in bits) of the field 'ip.sendentry'
#
- def offsetBits_route_parent_stats_success(self, index1):
- offset = 0
- if index1 < 0 or index1 >= 2:
- raise IndexError
- offset += 160 + index1 * 48
- return offset
+ def offsetBits_ip_sendentry(self):
+ return 104
#
- # Return the entire array 'route.parent.stats.success' as a int[]
+ # Return the value (as a short) of the field 'ip.sendentry'
#
- def get_route_parent_stats_success(self):
- tmp = [None]*2
- for index0 in range (0, self.numElements_route_parent_stats_success(0)):
- tmp[index0] = self.getElement_route_parent_stats_success(index0)
- return tmp
+ def get_ip_sendentry(self):
+ return self.getUIntElement(self.offsetBits_ip_sendentry(), 8, 1)
#
- # Set the contents of the array 'route.parent.stats.success' from the given int[]
+ # Set the value of the field 'ip.sendentry'
#
- def set_route_parent_stats_success(self, value):
- for index0 in range(0, len(value)):
- self.setElement_route_parent_stats_success(index0, value[index0])
-
+ def set_ip_sendentry(self, value):
+ self.setUIntElement(self.offsetBits_ip_sendentry(), 8, value, 1)
+
#
- # Return an element (as a int) of the array 'route.parent.stats.success'
+ # Return the size, in bytes, of the field 'ip.sendentry'
#
- def getElement_route_parent_stats_success(self, index1):
- return self.getUIntElement(self.offsetBits_route_parent_stats_success(index1), 16, 0)
+ def size_ip_sendentry(self):
+ return (8 / 8)
#
- # Set an element of the array 'route.parent.stats.success'
+ # Return the size, in bits, of the field 'ip.sendentry'
#
- def setElement_route_parent_stats_success(self, index1, value):
- self.setUIntElement(self.offsetBits_route_parent_stats_success(index1), 16, value, 0)
+ def sizeBits_ip_sendentry(self):
+ return 8
#
- # Return the total size, in bytes, of the array 'route.parent.stats.success'
+ # Accessor methods for field: ip.sndqueue
+ # Field type: short
+ # Offset (bits): 112
+ # Size (bits): 8
#
- def totalSize_route_parent_stats_success(self):
- return (96 / 8)
-
+
#
- # Return the total size, in bits, of the array 'route.parent.stats.success'
+ # Return whether the field 'ip.sndqueue' is signed (False).
#
- def totalSizeBits_route_parent_stats_success(self):
- return 96
+ def isSigned_ip_sndqueue(self):
+ return False
#
- # Return the size, in bytes, of each element of the array 'route.parent.stats.success'
+ # Return whether the field 'ip.sndqueue' is an array (False).
#
- def elementSize_route_parent_stats_success(self):
- return (16 / 8)
+ def isArray_ip_sndqueue(self):
+ return False
#
- # Return the size, in bits, of each element of the array 'route.parent.stats.success'
+ # Return the offset (in bytes) of the field 'ip.sndqueue'
#
- def elementSizeBits_route_parent_stats_success(self):
- return 16
+ def offset_ip_sndqueue(self):
+ return (112 / 8)
#
- # Return the number of dimensions in the array 'route.parent.stats.success'
+ # Return the offset (in bits) of the field 'ip.sndqueue'
#
- def numDimensions_route_parent_stats_success(self):
- return 1
+ def offsetBits_ip_sndqueue(self):
+ return 112
#
- # Return the number of elements in the array 'route.parent.stats.success'
+ # Return the value (as a short) of the field 'ip.sndqueue'
#
- def numElements_route_parent_stats_success():
- return 2
+ def get_ip_sndqueue(self):
+ return self.getUIntElement(self.offsetBits_ip_sndqueue(), 8, 1)
#
- # Return the number of elements in the array 'route.parent.stats.success'
- # for the given dimension.
+ # Set the value of the field 'ip.sndqueue'
#
- def numElements_route_parent_stats_success(self, dimension):
- array_dims = [ 2, ]
- if dimension < 0 or dimension >= 1:
- raise IndexException
- if array_dims[dimension] == 0:
- raise IndexError
- return array_dims[dimension]
+ def set_ip_sndqueue(self, value):
+ self.setUIntElement(self.offsetBits_ip_sndqueue(), 8, value, 1)
#
- # Accessor methods for field: route.parent.stats.total
- # Field type: int[]
- # Offset (bits): 16
- # Size of each element (bits): 16
+ # Return the size, in bytes, of the field 'ip.sndqueue'
#
-
+ def size_ip_sndqueue(self):
+ return (8 / 8)
+
#
- # Return whether the field 'route.parent.stats.total' is signed (False).
+ # Return the size, in bits, of the field 'ip.sndqueue'
#
- def isSigned_route_parent_stats_total(self):
- return False
+ def sizeBits_ip_sndqueue(self):
+ return 8
+
+ #
+ # Accessor methods for field: ip.encfail
+ # Field type: short
+ # Offset (bits): 120
+ # Size (bits): 8
+ #
+
+ #
+ # Return whether the field 'ip.encfail' is signed (False).
+ #
+ def isSigned_ip_encfail(self):
+ return False
+
+ #
+ # Return whether the field 'ip.encfail' is an array (False).
+ #
+ def isArray_ip_encfail(self):
+ return False
+
+ #
+ # Return the offset (in bytes) of the field 'ip.encfail'
+ #
+ def offset_ip_encfail(self):
+ return (120 / 8)
#
- # Return whether the field 'route.parent.stats.total' is an array (True).
+ # Return the offset (in bits) of the field 'ip.encfail'
#
- def isArray_route_parent_stats_total(self):
- return True
+ def offsetBits_ip_encfail(self):
+ return 120
#
- # Return the offset (in bytes) of the field 'route.parent.stats.total'
+ # Return the value (as a short) of the field 'ip.encfail'
#
- def offset_route_parent_stats_total(self, index1):
- offset = 16
- if index1 < 0 or index1 >= 2:
- raise IndexError
- offset += 160 + index1 * 48
- return (offset / 8)
+ def get_ip_encfail(self):
+ return self.getUIntElement(self.offsetBits_ip_encfail(), 8, 1)
#
- # Return the offset (in bits) of the field 'route.parent.stats.total'
+ # Set the value of the field 'ip.encfail'
#
- def offsetBits_route_parent_stats_total(self, index1):
- offset = 16
- if index1 < 0 or index1 >= 2:
- raise IndexError
- offset += 160 + index1 * 48
- return offset
+ def set_ip_encfail(self, value):
+ self.setUIntElement(self.offsetBits_ip_encfail(), 8, value, 1)
#
- # Return the entire array 'route.parent.stats.total' as a int[]
+ # Return the size, in bytes, of the field 'ip.encfail'
#
- def get_route_parent_stats_total(self):
- tmp = [None]*2
- for index0 in range (0, self.numElements_route_parent_stats_total(0)):
- tmp[index0] = self.getElement_route_parent_stats_total(index0)
- return tmp
+ def size_ip_encfail(self):
+ return (8 / 8)
#
- # Set the contents of the array 'route.parent.stats.total' from the given int[]
+ # Return the size, in bits, of the field 'ip.encfail'
+ #
+ def sizeBits_ip_encfail(self):
+ return 8
+
+ #
+ # Accessor methods for field: ip.heapfree
+ # Field type: int
+ # Offset (bits): 128
+ # Size (bits): 16
#
- def set_route_parent_stats_total(self, value):
- for index0 in range(0, len(value)):
- self.setElement_route_parent_stats_total(index0, value[index0])
#
- # Return an element (as a int) of the array 'route.parent.stats.total'
+ # Return whether the field 'ip.heapfree' is signed (False).
#
- def getElement_route_parent_stats_total(self, index1):
- return self.getUIntElement(self.offsetBits_route_parent_stats_total(index1), 16, 0)
+ def isSigned_ip_heapfree(self):
+ return False
#
- # Set an element of the array 'route.parent.stats.total'
+ # Return whether the field 'ip.heapfree' is an array (False).
#
- def setElement_route_parent_stats_total(self, index1, value):
- self.setUIntElement(self.offsetBits_route_parent_stats_total(index1), 16, value, 0)
+ def isArray_ip_heapfree(self):
+ return False
#
- # Return the total size, in bytes, of the array 'route.parent.stats.total'
+ # Return the offset (in bytes) of the field 'ip.heapfree'
#
- def totalSize_route_parent_stats_total(self):
- return (96 / 8)
+ def offset_ip_heapfree(self):
+ return (128 / 8)
#
- # Return the total size, in bits, of the array 'route.parent.stats.total'
+ # Return the offset (in bits) of the field 'ip.heapfree'
#
- def totalSizeBits_route_parent_stats_total(self):
- return 96
+ def offsetBits_ip_heapfree(self):
+ return 128
+
+ #
+ # Return the value (as a int) of the field 'ip.heapfree'
+ #
+ def get_ip_heapfree(self):
+ return self.getUIntElement(self.offsetBits_ip_heapfree(), 16, 1)
#
- # Return the size, in bytes, of each element of the array 'route.parent.stats.total'
+ # Set the value of the field 'ip.heapfree'
+ #
+ def set_ip_heapfree(self, value):
+ self.setUIntElement(self.offsetBits_ip_heapfree(), 16, value, 1)
+
#
- def elementSize_route_parent_stats_total(self):
+ # Return the size, in bytes, of the field 'ip.heapfree'
+ #
+ def size_ip_heapfree(self):
return (16 / 8)
#
- # Return the size, in bits, of each element of the array 'route.parent.stats.total'
+ # Return the size, in bits, of the field 'ip.heapfree'
#
- def elementSizeBits_route_parent_stats_total(self):
+ def sizeBits_ip_heapfree(self):
return 16
#
- # Return the number of dimensions in the array 'route.parent.stats.total'
+ # Accessor methods for field: udp.total
+ # Field type: int
+ # Offset (bits): 144
+ # Size (bits): 16
+ #
+
+ #
+ # Return whether the field 'udp.total' is signed (False).
+ #
+ def isSigned_udp_total(self):
+ return False
+
+ #
+ # Return whether the field 'udp.total' is an array (False).
+ #
+ def isArray_udp_total(self):
+ return False
+
+ #
+ # Return the offset (in bytes) of the field 'udp.total'
#
- def numDimensions_route_parent_stats_total(self):
- return 1
+ def offset_udp_total(self):
+ return (144 / 8)
#
- # Return the number of elements in the array 'route.parent.stats.total'
+ # Return the offset (in bits) of the field 'udp.total'
#
- def numElements_route_parent_stats_total():
- return 2
+ def offsetBits_udp_total(self):
+ return 144
#
- # Return the number of elements in the array 'route.parent.stats.total'
- # for the given dimension.
+ # Return the value (as a int) of the field 'udp.total'
#
- def numElements_route_parent_stats_total(self, dimension):
- array_dims = [ 2, ]
- if dimension < 0 or dimension >= 1:
- raise IndexException
- if array_dims[dimension] == 0:
- raise IndexError
- return array_dims[dimension]
+ def get_udp_total(self):
+ return self.getUIntElement(self.offsetBits_udp_total(), 16, 1)
#
- # Accessor methods for field: route.parent.stats.receptions
- # Field type: int[]
- # Offset (bits): 32
- # Size of each element (bits): 16
+ # Set the value of the field 'udp.total'
+ #
+ def set_udp_total(self, value):
+ self.setUIntElement(self.offsetBits_udp_total(), 16, value, 1)
+
+ #
+ # Return the size, in bytes, of the field 'udp.total'
+ #
+ def size_udp_total(self):
+ return (16 / 8)
+
+ #
+ # Return the size, in bits, of the field 'udp.total'
+ #
+ def sizeBits_udp_total(self):
+ return 16
+
+ #
+ # Accessor methods for field: udp.failed
+ # Field type: int
+ # Offset (bits): 160
+ # Size (bits): 16
#
#
- # Return whether the field 'route.parent.stats.receptions' is signed (False).
+ # Return whether the field 'udp.failed' is signed (False).
+ #
+ def isSigned_udp_failed(self):
+ return False
+
+ #
+ # Return whether the field 'udp.failed' is an array (False).
#
- def isSigned_route_parent_stats_receptions(self):
+ def isArray_udp_failed(self):
return False
#
- # Return whether the field 'route.parent.stats.receptions' is an array (True).
+ # Return the offset (in bytes) of the field 'udp.failed'
+ #
+ def offset_udp_failed(self):
+ return (160 / 8)
+
+ #
+ # Return the offset (in bits) of the field 'udp.failed'
#
- def isArray_route_parent_stats_receptions(self):
- return True
+ def offsetBits_udp_failed(self):
+ return 160
#
- # Return the offset (in bytes) of the field 'route.parent.stats.receptions'
+ # Return the value (as a int) of the field 'udp.failed'
#
- def offset_route_parent_stats_receptions(self, index1):
- offset = 32
- if index1 < 0 or index1 >= 2:
- raise IndexError
- offset += 160 + index1 * 48
- return (offset / 8)
+ def get_udp_failed(self):
+ return self.getUIntElement(self.offsetBits_udp_failed(), 16, 1)
#
- # Return the offset (in bits) of the field 'route.parent.stats.receptions'
+ # Set the value of the field 'udp.failed'
#
- def offsetBits_route_parent_stats_receptions(self, index1):
- offset = 32
- if index1 < 0 or index1 >= 2:
- raise IndexError
- offset += 160 + index1 * 48
- return offset
+ def set_udp_failed(self, value):
+ self.setUIntElement(self.offsetBits_udp_failed(), 16, value, 1)
#
- # Return the entire array 'route.parent.stats.receptions' as a int[]
+ # Return the size, in bytes, of the field 'udp.failed'
#
- def get_route_parent_stats_receptions(self):
- tmp = [None]*2
- for index0 in range (0, self.numElements_route_parent_stats_receptions(0)):
- tmp[index0] = self.getElement_route_parent_stats_receptions(index0)
- return tmp
+ def size_udp_failed(self):
+ return (16 / 8)
#
- # Set the contents of the array 'route.parent.stats.receptions' from the given int[]
+ # Return the size, in bits, of the field 'udp.failed'
+ #
+ def sizeBits_udp_failed(self):
+ return 16
+
+ #
+ # Accessor methods for field: udp.seqno
+ # Field type: int
+ # Offset (bits): 176
+ # Size (bits): 16
#
- def set_route_parent_stats_receptions(self, value):
- for index0 in range(0, len(value)):
- self.setElement_route_parent_stats_receptions(index0, value[index0])
#
- # Return an element (as a int) of the array 'route.parent.stats.receptions'
+ # Return whether the field 'udp.seqno' is signed (False).
#
- def getElement_route_parent_stats_receptions(self, index1):
- return self.getUIntElement(self.offsetBits_route_parent_stats_receptions(index1), 16, 0)
+ def isSigned_udp_seqno(self):
+ return False
#
- # Set an element of the array 'route.parent.stats.receptions'
+ # Return whether the field 'udp.seqno' is an array (False).
#
- def setElement_route_parent_stats_receptions(self, index1, value):
- self.setUIntElement(self.offsetBits_route_parent_stats_receptions(index1), 16, value, 0)
+ def isArray_udp_seqno(self):
+ return False
#
- # Return the total size, in bytes, of the array 'route.parent.stats.receptions'
+ # Return the offset (in bytes) of the field 'udp.seqno'
#
- def totalSize_route_parent_stats_receptions(self):
- return (96 / 8)
+ def offset_udp_seqno(self):
+ return (176 / 8)
#
- # Return the total size, in bits, of the array 'route.parent.stats.receptions'
+ # Return the offset (in bits) of the field 'udp.seqno'
#
- def totalSizeBits_route_parent_stats_receptions(self):
- return 96
+ def offsetBits_udp_seqno(self):
+ return 176
+
+ #
+ # Return the value (as a int) of the field 'udp.seqno'
+ #
+ def get_udp_seqno(self):
+ return self.getUIntElement(self.offsetBits_udp_seqno(), 16, 1)
+
+ #
+ # Set the value of the field 'udp.seqno'
+ #
+ def set_udp_seqno(self, value):
+ self.setUIntElement(self.offsetBits_udp_seqno(), 16, value, 1)
#
- # Return the size, in bytes, of each element of the array 'route.parent.stats.receptions'
+ # Return the size, in bytes, of the field 'udp.seqno'
#
- def elementSize_route_parent_stats_receptions(self):
+ def size_udp_seqno(self):
return (16 / 8)
#
- # Return the size, in bits, of each element of the array 'route.parent.stats.receptions'
+ # Return the size, in bits, of the field 'udp.seqno'
#
- def elementSizeBits_route_parent_stats_receptions(self):
+ def sizeBits_udp_seqno(self):
return 16
#
- # Return the number of dimensions in the array 'route.parent.stats.receptions'
+ # Accessor methods for field: udp.sender
+ # Field type: int
+ # Offset (bits): 192
+ # Size (bits): 16
+ #
+
+ #
+ # Return whether the field 'udp.sender' is signed (False).
#
- def numDimensions_route_parent_stats_receptions(self):
- return 1
+ def isSigned_udp_sender(self):
+ return False
#
- # Return the number of elements in the array 'route.parent.stats.receptions'
+ # Return whether the field 'udp.sender' is an array (False).
#
- def numElements_route_parent_stats_receptions():
- return 2
+ def isArray_udp_sender(self):
+ return False
#
- # Return the number of elements in the array 'route.parent.stats.receptions'
- # for the given dimension.
+ # Return the offset (in bytes) of the field 'udp.sender'
+ #
+ def offset_udp_sender(self):
+ return (192 / 8)
+
#
- def numElements_route_parent_stats_receptions(self, dimension):
- array_dims = [ 2, ]
- if dimension < 0 or dimension >= 1:
- raise IndexException
- if array_dims[dimension] == 0:
- raise IndexError
- return array_dims[dimension]
+ # Return the offset (in bits) of the field 'udp.sender'
+ #
+ def offsetBits_udp_sender(self):
+ return 192
+
+ #
+ # Return the value (as a int) of the field 'udp.sender'
+ #
+ def get_udp_sender(self):
+ return self.getUIntElement(self.offsetBits_udp_sender(), 16, 1)
+
+ #
+ # Set the value of the field 'udp.sender'
+ #
+ def set_udp_sender(self, value):
+ self.setUIntElement(self.offsetBits_udp_sender(), 16, value, 1)
+
+ #
+ # Return the size, in bytes, of the field 'udp.sender'
+ #
+ def size_udp_sender(self):
+ return (16 / 8)
+
+ #
+ # Return the size, in bits, of the field 'udp.sender'
+ #
+ def sizeBits_udp_sender(self):
+ return 16
+
+ #
+ # Accessor methods for field: icmp.rx
+ # Field type: int
+ # Offset (bits): 208
+ # Size (bits): 16
+ #
+
+ #
+ # Return whether the field 'icmp.rx' is signed (False).
+ #
+ def isSigned_icmp_rx(self):
+ return False
+
+ #
+ # Return whether the field 'icmp.rx' is an array (False).
+ #
+ def isArray_icmp_rx(self):
+ return False
+
+ #
+ # Return the offset (in bytes) of the field 'icmp.rx'
+ #
+ def offset_icmp_rx(self):
+ return (208 / 8)
+
+ #
+ # Return the offset (in bits) of the field 'icmp.rx'
+ #
+ def offsetBits_icmp_rx(self):
+ return 208
+
+ #
+ # Return the value (as a int) of the field 'icmp.rx'
+ #
+ def get_icmp_rx(self):
+ return self.getUIntElement(self.offsetBits_icmp_rx(), 16, 1)
+
+ #
+ # Set the value of the field 'icmp.rx'
+ #
+ def set_icmp_rx(self, value):
+ self.setUIntElement(self.offsetBits_icmp_rx(), 16, value, 1)
+
+ #
+ # Return the size, in bytes, of the field 'icmp.rx'
+ #
+ def size_icmp_rx(self):
+ return (16 / 8)
+
+ #
+ # Return the size, in bits, of the field 'icmp.rx'
+ #
+ def sizeBits_icmp_rx(self):
+ return 16
+
+ #
+ # Accessor methods for field: route.hop_limit
+ # Field type: short
+ # Offset (bits): 224
+ # Size (bits): 8
+ #
+
+ #
+ # Return whether the field 'route.hop_limit' is signed (False).
+ #
+ def isSigned_route_hop_limit(self):
+ return False
+
+ #
+ # Return whether the field 'route.hop_limit' is an array (False).
+ #
+ def isArray_route_hop_limit(self):
+ return False
+
+ #
+ # Return the offset (in bytes) of the field 'route.hop_limit'
+ #
+ def offset_route_hop_limit(self):
+ return (224 / 8)
+
+ #
+ # Return the offset (in bits) of the field 'route.hop_limit'
+ #
+ def offsetBits_route_hop_limit(self):
+ return 224
+
+ #
+ # Return the value (as a short) of the field 'route.hop_limit'
+ #
+ def get_route_hop_limit(self):
+ return self.getUIntElement(self.offsetBits_route_hop_limit(), 8, 1)
+
+ #
+ # Set the value of the field 'route.hop_limit'
+ #
+ def set_route_hop_limit(self, value):
+ self.setUIntElement(self.offsetBits_route_hop_limit(), 8, value, 1)
+
+ #
+ # Return the size, in bytes, of the field 'route.hop_limit'
+ #
+ def size_route_hop_limit(self):
+ return (8 / 8)
+
+ #
+ # Return the size, in bits, of the field 'route.hop_limit'
+ #
+ def sizeBits_route_hop_limit(self):
+ return 8
+
+ #
+ # Accessor methods for field: route.parent
+ # Field type: int
+ # Offset (bits): 232
+ # Size (bits): 16
+ #
+
+ #
+ # Return whether the field 'route.parent' is signed (False).
+ #
+ def isSigned_route_parent(self):
+ return False
+
+ #
+ # Return whether the field 'route.parent' is an array (False).
+ #
+ def isArray_route_parent(self):
+ return False
+
+ #
+ # Return the offset (in bytes) of the field 'route.parent'
+ #
+ def offset_route_parent(self):
+ return (232 / 8)
+
+ #
+ # Return the offset (in bits) of the field 'route.parent'
+ #
+ def offsetBits_route_parent(self):
+ return 232
+
+ #
+ # Return the value (as a int) of the field 'route.parent'
+ #
+ def get_route_parent(self):
+ return self.getUIntElement(self.offsetBits_route_parent(), 16, 1)
+
+ #
+ # Set the value of the field 'route.parent'
+ #
+ def set_route_parent(self, value):
+ self.setUIntElement(self.offsetBits_route_parent(), 16, value, 1)
+
+ #
+ # Return the size, in bytes, of the field 'route.parent'
+ #
+ def size_route_parent(self):
+ return (16 / 8)
+
+ #
+ # Return the size, in bits, of the field 'route.parent'
+ #
+ def sizeBits_route_parent(self):
+ return 16
+
+ #
+ # Accessor methods for field: route.parent_metric
+ # Field type: int
+ # Offset (bits): 248
+ # Size (bits): 16
+ #
+
+ #
+ # Return whether the field 'route.parent_metric' is signed (False).
+ #
+ def isSigned_route_parent_metric(self):
+ return False
+
+ #
+ # Return whether the field 'route.parent_metric' is an array (False).
+ #
+ def isArray_route_parent_metric(self):
+ return False
+
+ #
+ # Return the offset (in bytes) of the field 'route.parent_metric'
+ #
+ def offset_route_parent_metric(self):
+ return (248 / 8)
+
+ #
+ # Return the offset (in bits) of the field 'route.parent_metric'
+ #
+ def offsetBits_route_parent_metric(self):
+ return 248
+
+ #
+ # Return the value (as a int) of the field 'route.parent_metric'
+ #
+ def get_route_parent_metric(self):
+ return self.getUIntElement(self.offsetBits_route_parent_metric(), 16, 1)
+
+ #
+ # Set the value of the field 'route.parent_metric'
+ #
+ def set_route_parent_metric(self, value):
+ self.setUIntElement(self.offsetBits_route_parent_metric(), 16, value, 1)
+
+ #
+ # Return the size, in bytes, of the field 'route.parent_metric'
+ #
+ def size_route_parent_metric(self):
+ return (16 / 8)
+
+ #
+ # Return the size, in bits, of the field 'route.parent_metric'
+ #
+ def sizeBits_route_parent_metric(self):
+ return 16
+
+ #
+ # Accessor methods for field: route.parent_etx
+ # Field type: int
+ # Offset (bits): 264
+ # Size (bits): 16
+ #
+
+ #
+ # Return whether the field 'route.parent_etx' is signed (False).
+ #
+ def isSigned_route_parent_etx(self):
+ return False
+
+ #
+ # Return whether the field 'route.parent_etx' is an array (False).
+ #
+ def isArray_route_parent_etx(self):
+ return False
+
+ #
+ # Return the offset (in bytes) of the field 'route.parent_etx'
+ #
+ def offset_route_parent_etx(self):
+ return (264 / 8)
+
+ #
+ # Return the offset (in bits) of the field 'route.parent_etx'
+ #
+ def offsetBits_route_parent_etx(self):
+ return 264
+
+ #
+ # Return the value (as a int) of the field 'route.parent_etx'
+ #
+ def get_route_parent_etx(self):
+ return self.getUIntElement(self.offsetBits_route_parent_etx(), 16, 1)
+
+ #
+ # Set the value of the field 'route.parent_etx'
+ #
+ def set_route_parent_etx(self, value):
+ self.setUIntElement(self.offsetBits_route_parent_etx(), 16, value, 1)
+
+ #
+ # Return the size, in bytes, of the field 'route.parent_etx'
+ #
+ def size_route_parent_etx(self):
+ return (16 / 8)
+
+ #
+ # Return the size, in bits, of the field 'route.parent_etx'
+ #
+ def sizeBits_route_parent_etx(self):
+ return 16