* LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE.
*
- * support for the The RPKI/Router Protocol Protocol as per draft-ietf-sidr-rpki-rtr-12
+ * support for the The RPKI/Router Protocol as RFC6810
*
*/
u_char version; /* Version number */
u_char pdu_type; /* PDU type */
union {
- u_char cache_nonce[2]; /* Cache Nonce */
+ u_char session_id[2]; /* Session id */
u_char error_code[2]; /* Error code */
} u;
u_char length[4];
* Trailing zero.
*/
buf[idx] = '\0';
-
+
return buf;
}
case RPKI_RTR_SERIAL_QUERY_PDU:
case RPKI_RTR_END_OF_DATA_PDU:
msg = (const u_char *)(pdu_header + 1);
- printf("%sCache-Nonce: 0x%04x, Serial: %u",
+ printf("%sSession ID: 0x%04x, Serial: %u",
indent_string(indent+2),
- EXTRACT_16BITS(pdu_header->u.cache_nonce),
+ EXTRACT_16BITS(pdu_header->u.session_id),
EXTRACT_32BITS(msg));
break;
break;
case RPKI_RTR_CACHE_RESPONSE_PDU:
- printf("%sCache-Nonce: 0x%04x",
+ printf("%sSession ID: 0x%04x",
indent_string(indent+2),
- EXTRACT_16BITS(pdu_header->u.cache_nonce));
+ EXTRACT_16BITS(pdu_header->u.session_id));
break;
case RPKI_RTR_IPV4_PREFIX_PDU:
u_int tlen, pdu_type, pdu_len;
const u_char *tptr;
const rpki_rtr_pdu *pdu_header;
-
+
tptr = pptr;
tlen = len;