#include "netdissect-stdinc.h"
+#define ND_LONGJMP_FROM_TCHECK
#include "netdissect.h"
#include "extract.h"
{ 0, NULL }
};
-static int
+static void
auth_print(netdissect_options *ndo, const u_char *pptr)
{
const struct bfd_auth_header_t *bfd_auth_header;
pptr++;
ND_PRINT(", Password: ");
/* the length is equal to the password length plus three */
- if (nd_printn(ndo, pptr, auth_len - 3,
- ndo->ndo_snapend))
- goto trunc;
+ (void)nd_printn(ndo, pptr, auth_len - 3, NULL);
break;
case AUTH_MD5:
case AUTH_MET_MD5:
break;
}
pptr += 2;
- ND_TCHECK_4(pptr);
ND_PRINT(", Sequence Number: 0x%08x", GET_BE_U_4(pptr));
pptr += 4;
ND_TCHECK_LEN(pptr, AUTH_MD5_HASH_LEN);
break;
}
pptr += 2;
- ND_TCHECK_4(pptr);
ND_PRINT(", Sequence Number: 0x%08x", GET_BE_U_4(pptr));
pptr += 4;
ND_TCHECK_LEN(pptr, AUTH_SHA1_HASH_LEN);
ND_PRINT("%02x", GET_U_1(pptr + i));
break;
}
- return 0;
-
-trunc:
- return 1;
}
void
GET_BE_U_4(bfd_header->required_min_echo_interval)/1000);
if (flags & BFD_FLAG_AUTH) {
- if (auth_print(ndo, pptr))
- goto trunc;
+ auth_print(ndo, pptr);
}
break;
GET_BE_U_4(bfd_header->required_min_echo_interval)/1000);
if (flags & BFD_FLAG_AUTH) {
- if (auth_print(ndo, pptr))
- goto trunc;
+ auth_print(ndo, pptr);
}
break;
return;
}
}
- return;
-
-trunc:
- nd_print_trunc(ndo);
}