]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-rrcp.c
Fix spaces
[tcpdump] / print-rrcp.c
index 94406f9f7c32492e28ad959fa1f88f4c96f88836..1d76613d471bfae58e5d0e81da86fd59839420cd 100644 (file)
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
 
 #include "netdissect.h"
 #include "addrtoname.h"
@@ -96,6 +96,7 @@ rrcp_print(netdissect_options *ndo,
        uint8_t rrcp_proto;
        uint8_t rrcp_opcode;
 
+       ndo->ndo_protocol = "rrcp";
        ND_TCHECK_1(cp + RRCP_PROTO_OFFSET);
        rrcp_proto = EXTRACT_U_1(cp + RRCP_PROTO_OFFSET);
        ND_TCHECK_1(cp + RRCP_OPCODE_ISREPLY_OFFSET);
@@ -126,7 +127,7 @@ rrcp_print(netdissect_options *ndo,
        if (rrcp_proto==1 && rrcp_opcode==0 &&
             ((EXTRACT_U_1(cp + RRCP_OPCODE_ISREPLY_OFFSET)) & RRCP_ISREPLY)){
            ND_TCHECK_4(cp + RRCP_VENDOR_ID_OFFSET);
-           ND_PRINT(" downlink_port=%d, uplink_port=%d, uplink_mac=%s, vendor_id=%08x ,chip_id=%04x ",
+           ND_PRINT(" downlink_port=%u, uplink_port=%u, uplink_mac=%s, vendor_id=%08x ,chip_id=%04x ",
                     EXTRACT_U_1(cp + RRCP_DOWNLINK_PORT_OFFSET),
                     EXTRACT_U_1(cp + RRCP_UPLINK_PORT_OFFSET),
                     etheraddr_string(ndo, cp + RRCP_UPLINK_MAC_OFFSET),
@@ -141,5 +142,5 @@ rrcp_print(netdissect_options *ndo,
        return;
 
 trunc:
-       ND_PRINT("[|rrcp]");
+       nd_print_trunc(ndo);
 }