X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/64e8f9a9ed91a3cbfa8e66367f87ef50a1d62b99..532ef3e8aaf700fdb5e9dec13d37ed21897bf4f9:/print-ip-demux.c diff --git a/print-ip-demux.c b/print-ip-demux.c index 7df0f709..8b53187c 100644 --- a/print-ip-demux.c +++ b/print-ip-demux.c @@ -208,6 +208,16 @@ again: pgm_print(ndo, bp, length, iph); break; + case IPPROTO_ETHERNET: + if (ver == 6) + ether_print(ndo, bp, length, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL); + else { + ND_PRINT("[%s requires IPv6]", + tok2str(ipproto_values,"unknown",nh)); + nd_print_invalid(ndo); + } + break; + case IPPROTO_NONE: ND_PRINT("no next header"); break;