diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-09-01 01:25:53 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-09-01 03:29:39 +0000 |
commit | f16f6a3ef28754408548ff4ae1669856aec172b4 (patch) | |
tree | b22051b7f095f8bf435c7fe8d30246733f1a8e9f /epan/dissectors/packet-ip.c | |
parent | 5870352d8f388347750d8445a80be92e0fab6504 (diff) |
Avoid use of global protocol variables
Change-Id: I006d872a83649e72a6c83abac68cbae064457162
Reviewed-on: https://code.wireshark.org/review/23346
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ip.c')
-rw-r--r-- | epan/dissectors/packet-ip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c index 944ce38f54..bec139c478 100644 --- a/epan/dissectors/packet-ip.c +++ b/epan/dissectors/packet-ip.c @@ -96,7 +96,8 @@ static gboolean ip_use_geoip = TRUE; /* Interpret the reserved flag as security flag (RFC 3514) */ static gboolean ip_security_flag = FALSE; -int proto_ip = -1; +static int proto_ip = -1; + static int proto_ip_option_eol = -1; static int proto_ip_option_nop = -1; static int proto_ip_option_security = -1; |