]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ldp.c
Add the ndo_protocol field in the netdissect_options structure
[tcpdump] / print-ldp.c
index 1e1f1b679e073ff17011aed3bf7d077f1a4e7225..1fbc0567bd78afe8f28da85baf6005155a0e5166 100644 (file)
@@ -549,6 +549,8 @@ ldp_print(netdissect_options *ndo,
           const u_char *pptr, u_int len)
 {
     int processed;
+
+    ndo->ndo_protocol = "ldp";
     while (len > (sizeof(struct ldp_common_header) + sizeof(struct ldp_msg_header))) {
         processed = ldp_pdu_print(ndo, pptr);
         if (processed == 0)