aboutsummaryrefslogtreecommitdiff
path: root/pcap/dlt.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-11 11:56:04 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-11 11:56:04 -0700
commita8f73cd6ebcdbdc25f4658cb4ee378329979c49d (patch)
treeb1352a58343266c011f95057e2f6aff7fd296968 /pcap/dlt.h
parentae295ecc4db4521d3da0ce0540fa557892e315b2 (diff)
Use C99 {u}intN_t types rather than BSD {u_}intN_t types.
We can get them on any sufficiently modern UN*X, as they provide <inttypes.h>. We can get them with MSVC, by including <inttypes.h> on newer versions or defining them ourselves in older versions. We can get them with various development environments on MS-DOS. Add a pcap/pcap-inttypes.h header file that does what's necessary to get them defined, and include that in the pcap/*.h headers that use those types. Have pcap-types.h only include what's necessary to get u_int defined.
Diffstat (limited to 'pcap/dlt.h')
-rw-r--r--pcap/dlt.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/pcap/dlt.h b/pcap/dlt.h
index 33b1d4e0..42d06165 100644
--- a/pcap/dlt.h
+++ b/pcap/dlt.h
@@ -946,14 +946,14 @@
* the pseudo-header is:
*
* struct dl_ipnetinfo {
- * u_int8_t dli_version;
- * u_int8_t dli_family;
- * u_int16_t dli_htype;
- * u_int32_t dli_pktlen;
- * u_int32_t dli_ifindex;
- * u_int32_t dli_grifindex;
- * u_int32_t dli_zsrc;
- * u_int32_t dli_zdst;
+ * uint8_t dli_version;
+ * uint8_t dli_family;
+ * uint16_t dli_htype;
+ * uint32_t dli_pktlen;
+ * uint32_t dli_ifindex;
+ * uint32_t dli_grifindex;
+ * uint32_t dli_zsrc;
+ * uint32_t dli_zdst;
* };
*
* dli_version is 2 for the current version of the pseudo-header.