summaryrefslogtreecommitdiff
path: root/print-m3ua.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-23 00:20:40 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-23 00:20:40 -0700
commited85e20e4d6a27d5405f37366dd34b64c10a9211 (patch)
tree1dd34201f8777a4aba0ecbc39e8f480ba1407c41 /print-m3ua.c
parent595f1b5414c37b6ba31ed876343fd278a4c058ca (diff)
downloadtcpdump-ed85e20e4d6a27d5405f37366dd34b64c10a9211.tar.gz
u_intN_t is dead, long live uintN_t.
And, as we require at least autoconf 2.61, and as autoconf 2.61 and later have AC_TYPE_UINTn_T and AC_TYPE_INTn_T macros, we use them to define the uintN_t and intN_t macros if the system doesn't define them for us. This lets us get rid of bitypes.h as well.
Diffstat (limited to 'print-m3ua.c')
-rw-r--r--print-m3ua.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/print-m3ua.c b/print-m3ua.c
index f3dbfbf5..33f87779 100644
--- a/print-m3ua.c
+++ b/print-m3ua.c
@@ -40,16 +40,16 @@ static const char cstr[] = " (corrupt)";
#define M3UA_REL_1_0 1
struct m3ua_common_header {
- u_int8_t v;
- u_int8_t reserved;
- u_int8_t msg_class;
- u_int8_t msg_type;
- u_int32_t len;
+ uint8_t v;
+ uint8_t reserved;
+ uint8_t msg_class;
+ uint8_t msg_type;
+ uint32_t len;
};
struct m3ua_param_header {
- u_int16_t tag;
- u_int16_t len;
+ uint16_t tag;
+ uint16_t len;
};
/* message classes */
@@ -210,7 +210,7 @@ static const struct tok ParamName[] = {
static void
tag_value_print(netdissect_options *ndo,
- const u_char *buf, const u_int16_t tag, const u_int16_t size)
+ const u_char *buf, const uint16_t tag, const uint16_t size)
{
switch (tag) {
case M3UA_PARAM_NETWORK_APPEARANCE: