X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/ba8a8cd5a385e86a857b90d2d087dd6f2cd5b083..6c8ef0eb86a39c277d1a43802dd8ea01b51cfb2a:/print-vxlan-gpe.c diff --git a/print-vxlan-gpe.c b/print-vxlan-gpe.c index 92be1e25..6d170de1 100644 --- a/print-vxlan-gpe.c +++ b/print-vxlan-gpe.c @@ -21,6 +21,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* \summary: Generic Protocol Extension for VXLAN (VXLAN GPE) printer */ + +/* specification: draft-ietf-nvo3-vxlan-gpe-01 */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -88,7 +92,7 @@ vxlan_gpe_print(netdissect_options *ndo, const u_char *bp, u_int len) ip6_print(ndo, bp, len - 8); break; case 0x3: - ether_print(ndo, bp, len - 8, len - 8, NULL, NULL); + ether_print(ndo, bp, len - 8, ndo->ndo_snapend - bp, NULL, NULL); break; case 0x4: nsh_print(ndo, bp, len - 8);