aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-10-29 17:49:34 -0700
committerGuy Harris <guy@alum.mit.edu>2017-10-30 00:50:06 +0000
commit734c5b35a5491794dc9cb31ed07a8d0d5576d4f5 (patch)
tree15067601163a7a4fe89ebc9f3f28e7574e3d14e9 /epan/ftypes
parent3630a447d9e73f3e04cfe37dd578d22a452fbbe6 (diff)
Get rid of ipv4_get_net_order_addr() and ipv4_get_host_order_addr().
Just directly use the addr field, converting from host to network byte order if necessary. Change-Id: Ie1cd9ea5527b7824014dc315225ad2a6adb61c38 Reviewed-on: https://code.wireshark.org/review/24176 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/ftypes')
-rw-r--r--epan/ftypes/ftype-ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/ftypes/ftype-ipv4.c b/epan/ftypes/ftype-ipv4.c
index c07392ecc6..6d45e2eb97 100644
--- a/epan/ftypes/ftype-ipv4.c
+++ b/epan/ftypes/ftype-ipv4.c
@@ -212,7 +212,7 @@ static void
slice(fvalue_t *fv, GByteArray *bytes, guint offset, guint length)
{
guint8* data;
- guint32 addr = ipv4_get_net_order_addr(&(fv->value.ipv4));
+ guint32 addr = g_htonl(fv->value.ipv4.addr);
data = ((guint8*)&addr)+offset;
g_byte_array_append(bytes, data, length);
}