diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-01-29 09:18:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 09:18:32 +0100 |
commit | 0c70411b1b093279f3d7c09b2b57b491911df84c (patch) | |
tree | 993145c834d91aae2cd72044ae940f77557cf713 /example/reader_util.h | |
parent | 86b97ffb73edc0965ee1784c8182e715c2d932e3 (diff) |
Make some protocols more "big-endian" friendly (#1402)
See #1312
Diffstat (limited to 'example/reader_util.h')
-rw-r--r-- | example/reader_util.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/example/reader_util.h b/example/reader_util.h index 8fc964d6a..ccfab2433 100644 --- a/example/reader_util.h +++ b/example/reader_util.h @@ -161,10 +161,10 @@ struct ndpi_entropy { typedef struct ndpi_flow_info { u_int32_t flow_id; u_int32_t hashval; - u_int32_t src_ip; - u_int32_t dst_ip; - u_int16_t src_port; - u_int16_t dst_port; + u_int32_t src_ip; /* network order */ + u_int32_t dst_ip; /* network order */ + u_int16_t src_port; /* network order */ + u_int16_t dst_port; /* network order */ u_int8_t detection_completed, protocol, bidirectional, check_extra_packets; u_int16_t vlan_id; ndpi_packet_tunnel tunnel_type; |