/* Config String */
if (cslen) {
ND_PRINT("\n\tConfig String (length %u): ", cslen);
- (void)nd_printn(ndo, cp, cslen, NULL);
+ nd_printjn(ndo, cp, cslen);
}
return;
pptr++;
ND_PRINT(", Password: ");
/* the length is equal to the password length plus three */
- (void)nd_printn(ndo, pptr, auth_len - 3, NULL);
+ nd_printjn(ndo, pptr, auth_len - 3);
break;
case AUTH_MD5:
case AUTH_MET_MD5:
else {
ND_TCHECK_LEN(tptr + 1, shutdown_comm_length);
ND_PRINT(", Shutdown Communication (length: %u): \"", shutdown_comm_length);
- (void)nd_printn(ndo, tptr+1, shutdown_comm_length, NULL);
+ nd_printjn(ndo, tptr+1, shutdown_comm_length);
ND_PRINT("\"");
remainder_offset += shutdown_comm_length + 1;
}
case 'a':
/* ASCII strings */
ND_PRINT("\"");
- (void)nd_printn(ndo, bp, len, NULL);
+ nd_printjn(ndo, bp, len);
ND_PRINT("\"");
bp += len;
len = 0;
GET_U_1(bp + 1));
bp += 2;
ND_PRINT("\"");
- (void)nd_printn(ndo, bp, len - 3, NULL);
+ nd_printjn(ndo, bp, len - 3);
ND_PRINT("\"");
bp += len - 3;
len = 0;
len--;
if (type == 0) {
ND_PRINT("\"");
- (void)nd_printn(ndo, bp, len, NULL);
+ nd_printjn(ndo, bp, len);
ND_PRINT("\"");
bp += len;
len = 0;
case AGENT_SUBOPTION_CIRCUIT_ID: /* fall through */
case AGENT_SUBOPTION_REMOTE_ID:
case AGENT_SUBOPTION_SUBSCRIBER_ID:
- (void)nd_printn(ndo, bp, suboptlen, NULL);
+ nd_printjn(ndo, bp, suboptlen);
break;
default:
break;
}
ND_PRINT("\"");
- (void)nd_printn(ndo, bp, suboptlen, NULL);
+ nd_printjn(ndo, bp, suboptlen);
ND_PRINT("\"");
ND_PRINT(", length %u", suboptlen);
suboptnumber++;
const u_char *cp, const u_int len)
{
ND_PRINT("'");
- (void)nd_printn(ndo, cp, len, NULL);
+ nd_printjn(ndo, cp, len);
ND_PRINT("'");
}
ND_PRINT("0x%02x", GET_U_1(cp));
if (len > 1) {
ND_PRINT("/");
- (void)nd_printn(ndo, cp + 1, len - 1, NULL);
+ nd_printjn(ndo, cp + 1, len - 1);
}
}
switch (subtype) {
case LLDP_IANA_SUBTYPE_MUDURL:
ND_PRINT("\n\t MUD-URL=");
- (void)nd_printn(ndo, tptr+4, tlv_len-4, NULL);
+ nd_printjn(ndo, tptr+4, tlv_len-4);
break;
default:
hexdump=TRUE;
size_t l, const u_char *p0)
{
ND_PRINT(" ");
- (void)nd_printn(ndo, p0, l, NULL);
+ nd_printjn(ndo, p0, l);
p0 += l;
if (GET_U_1(p0))
ND_PRINT(" (not NUL-terminated!)");
else
ND_PRINT(", address %s, name \"",
GET_IPADDR_STRING(msg_data));
- (void)nd_printn(ndo, msg_data + addr_size, name_entry_len, NULL);
+ nd_printjn(ndo, msg_data + addr_size, name_entry_len);
ND_PRINT("\"");
msg_data += addr_size + name_entry_len + name_entry_padding;
OF_FWD(4);
/* data */
ND_PRINT(", data '");
- (void)nd_printn(ndo, cp, len, NULL);
+ nd_printjn(ndo, cp, len);
ND_PRINT("'");
break;
case BSN_SHELL_OUTPUT:
/* already checked that len >= 4 */
/* data */
ND_PRINT(", data '");
- (void)nd_printn(ndo, cp, len, NULL);
+ nd_printjn(ndo, cp, len);
ND_PRINT("'");
break;
case BSN_SHELL_STATUS:
data++;
ND_PRINT("[%s] ", tok2str(operator_name_vector, "unknown namespace %u", namespace_value));
- (void)nd_printn(ndo, data, length - 1, NULL);
+ nd_printjn(ndo, data, length - 1);
return;
data += 8;
ND_PRINT("method \"");
- (void)nd_printn(ndo, data, length - 20, NULL);
+ nd_printjn(ndo, data, length - 20);
ND_PRINT("\"");
return;
if (length > 10) {
ND_PRINT(", note well \"");
- (void)nd_printn(ndo, data, length - 10, NULL);
+ nd_printjn(ndo, data, length - 10);
ND_PRINT("\"");
}
if (text_length) {
if (pdu_len < tlen + text_length)
goto invalid;
- /* nd_printn() makes the bounds check */
ND_PRINT("%sError text: ", indent_string(indent+2));
- (void)nd_printn(ndo, tptr + tlen, text_length, NULL);
+ nd_printjn(ndo, tptr + tlen, text_length);
}
}
break;
* beautification to make it clear what was transmitted on the wire.
*/
if (len > msg_off)
- (void)nd_printn(ndo, pptr + msg_off, len - msg_off, NULL);
+ nd_printjn(ndo, pptr + msg_off, len - msg_off);
if (ndo->ndo_vflag > 1)
print_unknown_data(ndo, pptr, "\n\t", len);
case UDLD_ECHO_TLV:
ND_PRINT(", ");
- (void)nd_printn(ndo, tptr, len, NULL);
+ nd_printjn(ndo, tptr, len);
break;
case UDLD_MESSAGE_INTERVAL_TLV: