X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/55fb258d79a9876e61a8c62659340cba300211b7..0023eaa78f123676bfa9c5fba72ea4b8a59aaa70:/print-realtek.c diff --git a/print-realtek.c b/print-realtek.c index 2aae3fe4..f3208650 100644 --- a/print-realtek.c +++ b/print-realtek.c @@ -25,9 +25,7 @@ /* \summary: printer for various Realtek protocols */ -#ifdef HAVE_CONFIG_H #include -#endif #include "netdissect-stdinc.h" @@ -117,7 +115,7 @@ rrcp_print(netdissect_options *ndo, tok2str(opcode_values,"unknown opcode (0x%02x)",rrcp_opcode)); if (rrcp_opcode==RRCP_OPCODE_GET_CONFIGURATION || rrcp_opcode==RRCP_OPCODE_SET_CONFIGURATION){ - ND_PRINT(" addr=0x%04x, data=0x%08x", + ND_PRINT(" addr=0x%04x, data=0x%08x", GET_LE_U_2(cp + RRCP_REG_ADDR_OFFSET), GET_LE_U_4(cp + RRCP_REG_DATA_OFFSET)); }