Lines Matching full:pdu
33 * RPKI/Router PDU header
35 * Here's what the PDU header looks like.
40 nd_uint8_t pdu_type; /* PDU type */
49 * IPv4 Prefix PDU.
62 * IPv6 Prefix PDU.
75 * Error report PDU.
79 nd_uint32_t encapsulated_pdu_length; /* Encapsulated PDU length */
80 /* Copy of Erroneous PDU (variable, optional) */
86 * PDU type codes
117 { 5, "Unsupported PDU Type" },
170 * Print a single PDU.
189 * a well-formed PDU of a future RPKI-Router protocol version in rpki_rtr_pdu_print()
190 * followed by a well-formed PDU of RPKI-Router protocol in rpki_rtr_pdu_print()
192 * current PDU. in rpki_rtr_pdu_print()
201 * a truncated Error Report PDU or a truncated encapsulated PDU. in rpki_rtr_pdu_print()
205 ND_PRINT("%sRPKI-RTRv%u, %s PDU (%u), length: %u", in rpki_rtr_pdu_print()
255 const rpki_rtr_pdu_ipv4_prefix *pdu; in rpki_rtr_pdu_print() local
259 pdu = (const rpki_rtr_pdu_ipv4_prefix *)tptr; in rpki_rtr_pdu_print()
262 GET_IPADDR_STRING(pdu->prefix), in rpki_rtr_pdu_print()
263 GET_U_1(pdu->prefix_length), GET_U_1(pdu->max_length), in rpki_rtr_pdu_print()
264 GET_BE_U_4(pdu->as), GET_U_1(pdu->flags)); in rpki_rtr_pdu_print()
270 const rpki_rtr_pdu_ipv6_prefix *pdu; in rpki_rtr_pdu_print() local
274 pdu = (const rpki_rtr_pdu_ipv6_prefix *)tptr; in rpki_rtr_pdu_print()
277 GET_IP6ADDR_STRING(pdu->prefix), in rpki_rtr_pdu_print()
278 GET_U_1(pdu->prefix_length), GET_U_1(pdu->max_length), in rpki_rtr_pdu_print()
279 GET_BE_U_4(pdu->as), GET_U_1(pdu->flags)); in rpki_rtr_pdu_print()
285 const rpki_rtr_pdu_error_report *pdu; in rpki_rtr_pdu_print() local
292 pdu = (const rpki_rtr_pdu_error_report *)tptr; in rpki_rtr_pdu_print()
293 encapsulated_pdu_length = GET_BE_U_4(pdu->encapsulated_pdu_length); in rpki_rtr_pdu_print()
295 /* Safe up to and including the "Length of Encapsulated PDU" in rpki_rtr_pdu_print()
299 error_code = GET_BE_U_2(pdu->pdu_header.u.error_code); in rpki_rtr_pdu_print()
300 ND_PRINT("%sError code: %s (%u), Encapsulated PDU length: %u", in rpki_rtr_pdu_print()
307 * "An Error Report PDU MUST NOT be sent for an Error Report PDU." in rpki_rtr_pdu_print()
313 * That said, "the Erroneous PDU field MAY be truncated" (ibid), thus in rpki_rtr_pdu_print()
316 * the inner PDU independently. in rpki_rtr_pdu_print()
323 ND_PRINT("%s-----encapsulated PDU-----", indent_string(indent+4)); in rpki_rtr_pdu_print()