diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-04-23 00:20:40 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-04-23 00:20:40 -0700 |
commit | ed85e20e4d6a27d5405f37366dd34b64c10a9211 (patch) | |
tree | 1dd34201f8777a4aba0ecbc39e8f480ba1407c41 /print-igrp.c | |
parent | 595f1b5414c37b6ba31ed876343fd278a4c058ca (diff) | |
download | tcpdump-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-igrp.c')
-rw-r--r-- | print-igrp.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/print-igrp.c b/print-igrp.c index 794f0c52..fbb31342 100644 --- a/print-igrp.c +++ b/print-igrp.c @@ -36,15 +36,15 @@ /* IGRP Header */ struct igrphdr { - u_int8_t ig_vop; /* protocol version number / opcode */ + uint8_t ig_vop; /* protocol version number / opcode */ #define IGRP_V(x) (((x) & 0xf0) >> 4) #define IGRP_OP(x) ((x) & 0x0f) - u_int8_t ig_ed; /* edition number */ - u_int16_t ig_as; /* autonomous system number */ - u_int16_t ig_ni; /* number of subnet in local net */ - u_int16_t ig_ns; /* number of networks in AS */ - u_int16_t ig_nx; /* number of networks ouside AS */ - u_int16_t ig_sum; /* checksum of IGRP header & data */ + uint8_t ig_ed; /* edition number */ + uint16_t ig_as; /* autonomous system number */ + uint16_t ig_ni; /* number of subnet in local net */ + uint16_t ig_ns; /* number of networks in AS */ + uint16_t ig_nx; /* number of networks ouside AS */ + uint16_t ig_sum; /* checksum of IGRP header & data */ }; #define IGRP_UPDATE 1 @@ -53,13 +53,13 @@ struct igrphdr { /* IGRP routing entry */ struct igrprte { - u_int8_t igr_net[3]; /* 3 significant octets of IP address */ - u_int8_t igr_dly[3]; /* delay in tens of microseconds */ - u_int8_t igr_bw[3]; /* bandwidth in units of 1 kb/s */ - u_int8_t igr_mtu[2]; /* MTU in octets */ - u_int8_t igr_rel; /* percent packets successfully tx/rx */ - u_int8_t igr_ld; /* percent of channel occupied */ - u_int8_t igr_hct; /* hop count */ + uint8_t igr_net[3]; /* 3 significant octets of IP address */ + uint8_t igr_dly[3]; /* delay in tens of microseconds */ + uint8_t igr_bw[3]; /* bandwidth in units of 1 kb/s */ + uint8_t igr_mtu[2]; /* MTU in octets */ + uint8_t igr_rel; /* percent packets successfully tx/rx */ + uint8_t igr_ld; /* percent of channel occupied */ + uint8_t igr_hct; /* hop count */ }; #define IGRP_RTE_SIZE 14 /* don't believe sizeof ! */ |