aoev1_issue_print(netdissect_options *ndo,
const u_char *cp, const u_int len)
{
- const u_char *ep = cp + len;
+ const u_char *ep = ndo->ndo_snapend;
if (len < AOEV1_ISSUE_ARG_LEN)
goto invalid;
aoev1_query_print(netdissect_options *ndo,
const u_char *cp, const u_int len)
{
- const u_char *ep = cp + len;
+ const u_char *ep = ndo->ndo_snapend;
uint16_t cslen;
if (len < AOEV1_QUERY_ARG_LEN)
aoev1_mac_print(netdissect_options *ndo,
const u_char *cp, const u_int len)
{
- const u_char *ep = cp + len;
+ const u_char *ep = ndo->ndo_snapend;
uint8_t dircount, i;
if (len < AOEV1_MAC_ARG_LEN)
aoev1_reserve_print(netdissect_options *ndo,
const u_char *cp, const u_int len)
{
- const u_char *ep = cp + len;
+ const u_char *ep = ndo->ndo_snapend;
uint8_t nmacs, i;
if (len < AOEV1_RESERVE_ARG_LEN || (len - AOEV1_RESERVE_ARG_LEN) % MAC_ADDR_LEN)
aoev1_print(netdissect_options *ndo,
const u_char *cp, const u_int len)
{
- const u_char *ep = cp + len;
+ const u_char *ep = ndo->ndo_snapend;
uint8_t flags, command;
void (*cmd_decoder)(netdissect_options *, const u_char *, const u_int);
aoe_print(netdissect_options *ndo,
const u_char *cp, const u_int len)
{
- const u_char *ep = cp + len;
+ const u_char *ep = ndo->ndo_snapend;
uint8_t ver;
ND_PRINT("AoE length %u", len);