X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/cfa9ab5f80dd9a1024e1a765bc0d24c57652b6bc..ff4af2069a7d1f56cbcd4292e3d25ddb41a19b0b:/print-rsvp.c diff --git a/print-rsvp.c b/print-rsvp.c index 86744e06..f26cc166 100644 --- a/print-rsvp.c +++ b/print-rsvp.c @@ -519,7 +519,7 @@ rsvp_intserv_print(netdissect_options *ndo, uint32_t i; } bw; - ND_LCHECK_U(obj_tlen, 4); + ND_ICHECK_U(obj_tlen, <, 4); parameter_id = GET_U_1(tptr); parameter_length = GET_BE_U_2(tptr + 2)<<2; /* convert wordcount to bytecount */ @@ -529,7 +529,7 @@ rsvp_intserv_print(netdissect_options *ndo, parameter_length, GET_U_1(tptr + 1)); - ND_LCHECK_U(obj_tlen, parameter_length + 4); + ND_ICHECK_U(obj_tlen, <, parameter_length + 4); switch(parameter_id) { /* parameter_id */ case 4: @@ -1252,7 +1252,7 @@ rsvp_obj_print(netdissect_options *ndo, * each iteration subobj_len may happen to be a multiple of 1 * and test it and total_subobj_len respectively. */ - ND_LCHECK_U(total_subobj_len, 4); + ND_ICHECK_U(total_subobj_len, <, 4); subobj_len = GET_BE_U_2(obj_tptr); subobj_type = (GET_BE_U_2(obj_tptr + 2))>>8; af = (GET_BE_U_2(obj_tptr + 2))&0x00FF; @@ -1299,13 +1299,13 @@ rsvp_obj_print(netdissect_options *ndo, case RSVP_GEN_UNI_SUBOBJ_DESTINATION_TNA_ADDRESS: switch(af) { - case AFNUM_INET: + case AFNUM_IP: if (subobj_len < 8) goto subobj_tooshort; ND_PRINT("%s UNI IPv4 TNA address: %s", indent, GET_IPADDR_STRING(obj_tptr + 4)); break; - case AFNUM_INET6: + case AFNUM_IP6: if (subobj_len < 20) goto subobj_tooshort; ND_PRINT("%s UNI IPv6 TNA address: %s",