IPv6 Prefix packet from section 5.7 https://tools.ietf.org/html/rfc6810#section-5.7
| 152 | |
| 153 | |
| 154 | class 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 | |
| 178 | class RTREndofDatav0(Packet): |
nothing calls this directly
no test coverage detected