]> The Tcpdump Group git mirrors - tcpdump/commitdiff
USB: Print the protocol name
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 13 Aug 2019 19:35:13 +0000 (21:35 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 15 Aug 2019 13:55:30 +0000 (15:55 +0200)
Moreover:
With '-q' option, just print the protocol name.

print-usb.c

index d0ae440e6aa66804a6793e490073e2cf5b601434..07a0a5d18bef179050aa9e84ffcab03e8ff4a3ac 100644 (file)
@@ -187,6 +187,13 @@ usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh)
        int direction;
        uint8_t transfer_type, event_type;
 
+       ndo->ndo_protocol = "usb";
+
+       nd_print_protocol_caps(ndo);
+       if (ndo->ndo_qflag)
+               return;
+
+       ND_PRINT(" ");
        transfer_type = GET_U_1(uh->transfer_type);
        switch(transfer_type)
        {