diff options
Diffstat (limited to 'print-vxlan-gpe.c')
-rw-r--r-- | print-vxlan-gpe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-vxlan-gpe.c b/print-vxlan-gpe.c index 1364534e..d7a80f25 100644 --- a/print-vxlan-gpe.c +++ b/print-vxlan-gpe.c @@ -92,7 +92,7 @@ vxlan_gpe_print(netdissect_options *ndo, const u_char *bp, u_int len) ip6_print(ndo, bp, len - VXLAN_GPE_HDR_LEN); break; case 0x3: - ether_print(ndo, bp, len - VXLAN_GPE_HDR_LEN, ndo->ndo_snapend - bp, NULL, NULL); + ether_print(ndo, bp, len - VXLAN_GPE_HDR_LEN, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL); break; case 0x4: nsh_print(ndo, bp, len - VXLAN_GPE_HDR_LEN); |