- (void)printf(" SA-Response");
- TCHECK(*sp);
- (void)printf(" %d entries", *sp);
- if (*sp * 12 + 8 < len) {
- (void)printf(" [w/data]");
- if (vflag > 1) {
- (void)printf(" ");
- ip_print(sp + *sp * 12 + 8 - 3,
- len - (*sp * 12 + 8));
+ ND_PRINT((ndo, " SA-Response"));
+ ND_TCHECK_1(sp);
+ ND_PRINT((ndo, " %u entries", EXTRACT_U_1(sp)));
+ if ((u_int)((EXTRACT_U_1(sp) * 12) + 8) < len) {
+ ND_PRINT((ndo, " [w/data]"));
+ if (ndo->ndo_vflag > 1) {
+ ND_PRINT((ndo, " "));
+ ip_print(ndo, sp +
+ EXTRACT_U_1(sp) * 12 + 8 - 3,
+ len - (EXTRACT_U_1(sp) * 12 + 8));