]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vxlan-gpe.c
change make check to work with POSIX shell
[tcpdump] / print-vxlan-gpe.c
index 92be1e25c5857e0606194205927aa512a2c56d21..6d170de10e6a2bd9fd2aef2ebf82ab0b999b41e1 100644 (file)
  * 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);