ND_PRINT((ndo, "%s", ndo->ndo_eflag ? "" : "Q.933"));
- if (length == 0 || !ND_TTEST(*p)) {
+ if (length == 0 || !ND_TTEST_1(p)) {
if (!ndo->ndo_eflag)
ND_PRINT((ndo, ", "));
ND_PRINT((ndo, "length %u", length));
* Get the call reference value.
*/
for (i = 0; i < call_ref_length; i++) {
- if (length == 0 || !ND_TTEST(*p)) {
+ if (length == 0 || !ND_TTEST_1(p)) {
if (!ndo->ndo_eflag)
ND_PRINT((ndo, ", "));
ND_PRINT((ndo, "length %u", olen));
/*
* Get the message type.
*/
- if (length == 0 || !ND_TTEST(*p)) {
+ if (length == 0 || !ND_TTEST_1(p)) {
if (!ndo->ndo_eflag)
ND_PRINT((ndo, ", "));
ND_PRINT((ndo, "length %u", olen));
non_locking_shift = 0;
unshift_codeset = codeset;
if (length != 0) {
- if (!ND_TTEST(*p)) {
+ if (!ND_TTEST_1(p)) {
if (!ndo->ndo_eflag)
ND_PRINT((ndo, ", "));
ND_PRINT((ndo, "length %u", olen));
/*
* Get the first octet of the IE.
*/
- if (!ND_TTEST(*p)) {
+ if (!ND_TTEST_1(p)) {
if (!ndo->ndo_vflag) {
ND_PRINT((ndo, ", length %u", olen));
}
/*
* No. Get the IE length.
*/
- if (length == 0 || !ND_TTEST(*p)) {
+ if (length == 0 || !ND_TTEST_1(p)) {
if (!ndo->ndo_vflag) {
ND_PRINT((ndo, ", length %u", olen));
}
void
isoclns_print(netdissect_options *ndo, const uint8_t *p, u_int length)
{
- if (!ND_TTEST(*p)) { /* enough bytes on the wire ? */
+ if (!ND_TTEST_1(p)) { /* enough bytes on the wire ? */
ND_PRINT((ndo, "|OSI"));
return;
}
ND_PRINT((ndo, " %s", tok2str(pimv1_type_str, "[type %u]", type)));
switch (type) {
case PIMV1_TYPE_QUERY:
- if (ND_TTEST(bp[8])) {
+ if (ND_TTEST_1(bp + 8)) {
switch (EXTRACT_U_1(bp + 8) >> 4) {
case 0:
ND_PRINT((ndo, " Dense-mode"));
* Do this so that we dont overwrite the original packet
* contents.
*/
- for (s = p, t = b, i = length; i != 0 && ND_TTEST(*s); i--) {
+ for (s = p, t = b, i = length; i != 0 && ND_TTEST_1(s); i--) {
c = EXTRACT_U_1(s);
s++;
if (c == 0x7d) {
size_t toklen = 0;
for (; idx < len; idx++) {
- if (!ND_TTEST(*(pptr + idx))) {
+ if (!ND_TTEST_1(pptr + idx)) {
/* ran past end of captured data */
return (0);
}
* an end-of-line (CR or LF).
*/
for (; idx < len; idx++) {
- if (!ND_TTEST(*(pptr + idx))) {
+ if (!ND_TTEST_1(pptr + idx)) {
/* ran past end of captured data */
break;
}