]> The Tcpdump Group git mirrors - tcpdump/commitdiff
gre: handle Network Service Header (NSH), RFC 8300
authorGuy Harris <[email protected]>
Sun, 9 Apr 2023 05:59:21 +0000 (22:59 -0700)
committerGuy Harris <[email protected]>
Sun, 9 Apr 2023 05:59:21 +0000 (22:59 -0700)
This, and the previous multicast MPLS change, come from the OpenBSD
tcpdump.

print-gre.c

index 3f1365b3f3554db561a7d13176991659e55a846f..db6ebfacaad234ee0f8bbb718b03cc658cd40275 100644 (file)
@@ -304,6 +304,9 @@ gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length)
        case ETHERTYPE_TEB:
                ether_print(ndo, bp, len, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL);
                break;
+       case ETHERTYPE_NSH:
+               nsh_print(ndo, bp, len);
+               break;
        default:
                ND_PRINT("gre-proto-0x%x", prot);
        }