diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-10-29 01:26:56 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-10-29 05:34:34 +0000 |
commit | 83a4eadc070bcfda137b0f44e02712b46e5cb1d0 (patch) | |
tree | 68ef53040a8ae0d757e8026a56f47b9511ac8dd5 /wiretap | |
parent | ce25b358a94205c92e3b2612abf12119c50af1c4 (diff) |
wtap.h: Replace literal buffer size with WS_INET_ADDRSTRLEN
Bug: 14149
Change-Id: Ib7d60f93373eb23f5c950607f4cf6fc832c79670
Reviewed-on: https://code.wireshark.org/review/24154
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/wtap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h index 79a8251931..52fb726197 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -25,6 +25,7 @@ #include <time.h> #include <wsutil/buffer.h> #include <wsutil/nstime.h> +#include <wsutil/inet_addr.h> #include "wtap_opttypes.h" #include "ws_symbol_export.h" #include "ws_attributes.h" @@ -1361,14 +1362,14 @@ typedef struct wtapng_if_stats_mandatory_s { typedef struct hashipv4 { guint addr; guint8 flags; /* B0 dummy_entry, B1 resolve, B2 If the address is used in the trace */ - gchar ip[16]; + gchar ip[WS_INET_ADDRSTRLEN]; gchar name[MAXNAMELEN]; } hashipv4_t; typedef struct hashipv6 { guint8 addr[16]; guint8 flags; /* B0 dummy_entry, B1 resolve, B2 If the address is used in the trace */ - gchar ip6[46]; + gchar ip6[WS_INET6_ADDRSTRLEN]; gchar name[MAXNAMELEN]; } hashipv6_t; |