X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6ec714988caac3bf9fedc766ae51a2248896ec80..66f29e001c608bf8ca3ed25f492fbd88e23e1b5e:/print-rsvp.c diff --git a/print-rsvp.c b/print-rsvp.c index 29d27412..05e76393 100644 --- a/print-rsvp.c +++ b/print-rsvp.c @@ -487,11 +487,11 @@ static const struct tok rsvp_obj_generalized_uni_values[] = { * it is called from various rsvp objects; * returns the amount of bytes being processed */ -static int +static u_int rsvp_intserv_print(netdissect_options *ndo, const u_char *tptr, u_short obj_tlen) { - int parameter_id,parameter_length; + u_int parameter_id,parameter_length; union { float f; uint32_t i; @@ -670,7 +670,8 @@ rsvp_obj_print(netdissect_options *ndo, const struct rsvp_obj_frr_t *rsvp_obj_frr; } obj_ptr; - u_short rsvp_obj_len,rsvp_obj_ctype,obj_tlen,intserv_serv_tlen; + u_short rsvp_obj_len,rsvp_obj_ctype,obj_tlen; + u_int intserv_serv_tlen; int hexdump,processed,padbytes,error_code,error_value,i,sigcheck; union { float f; @@ -1377,11 +1378,11 @@ rsvp_obj_print(netdissect_options *ndo, while (obj_tlen >= 4) { intserv_serv_tlen=EXTRACT_BE_U_2(obj_tptr + 2)<<2; - ND_PRINT((ndo, "%s Service Type: %s (%u), break bit %s set, Service length: %u", + ND_PRINT((ndo, "%s Service Type: %s (%u), break bit %sset, Service length: %u", indent, tok2str(rsvp_intserv_service_type_values,"unknown",EXTRACT_U_1((obj_tptr))), EXTRACT_U_1(obj_tptr), - (EXTRACT_U_1(obj_tptr + 1)&0x80) ? "" : "not", + (EXTRACT_U_1(obj_tptr + 1)&0x80) ? "" : "not ", intserv_serv_tlen)); obj_tptr+=4; /* get to the start of the parameter list */