MCPcopy Index your code
hub / github.com/secdev/scapy / RTRIPv6Prefix

Class RTRIPv6Prefix

scapy/contrib/rtr.py:154–175  ·  view source on GitHub ↗

IPv6 Prefix packet from section 5.7 https://tools.ietf.org/html/rfc6810#section-5.7

Source from the content-addressed store, hash-verified

152
153
154class RTRIPv6Prefix(Packet):
155
156 '''
157
158 IPv6 Prefix packet from section 5.7
159 https://tools.ietf.org/html/rfc6810#section-5.7
160
161 '''
162 name = 'IPv6 Prefix'
163 fields_desc = [ByteEnumField('rtr_version', 0, RTR_VERSION),
164 ByteEnumField('pdu_type', 6, PDU_TYPE),
165 ShortField('reserved', 0),
166 IntField('length', STATIC_IPV6_PREFIX_LENGTH),
167 ByteField('flags', 0),
168 ByteField('shortest_length', 0),
169 ByteField('longest_length', 0),
170 ByteField('zeros', 0),
171 IP6Field("prefix", "::"),
172 IntField('asn', 0)]
173
174 def guess_payload_class(self, payload):
175 return RTR
176
177
178class RTREndofDatav0(Packet):

Callers

nothing calls this directly

Calls 5

ByteEnumFieldClass · 0.90
ShortFieldClass · 0.90
IntFieldClass · 0.90
ByteFieldClass · 0.90
IP6FieldClass · 0.90

Tested by

no test coverage detected