From 67a9ecc9b432279ceded8fc794f7e9dd2bad2df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Sat, 7 Sep 2002 00:08:02 +0000 Subject: Use g_ntohXXX instead of ntohXXX svn path=/trunk/; revision=6206 --- packet-netflow.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'packet-netflow.c') diff --git a/packet-netflow.c b/packet-netflow.c index 2b0f6effbf..4370d85813 100644 --- a/packet-netflow.c +++ b/packet-netflow.c @@ -2,7 +2,7 @@ * Routines for Cisco NetFlow packet disassembly * Matthew Smart * - * $Id: packet-netflow.c,v 1.2 2002/09/06 21:22:36 guy Exp $ + * $Id: packet-netflow.c,v 1.3 2002/09/07 00:08:02 jmayer Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -69,13 +69,13 @@ dissect_netflow(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Determine NetFlow version and number of records */ tvb_memcpy(tvb, (guint8 *)&nfh, offset, sizeof(nfh)); - nfh_version = ntohs(nfh.version); - nfh_count = ntohs(nfh.count); - nfh_sys_uptime = ntohl(nfh.sys_uptime); - nfh_unix_sec = ntohl(nfh.unix_sec); - nfh_unix_nsec = ntohl(nfh.unix_nsec); - nfh_sample_rate = ntohs(nfh.sample_rate); - nfh_sequence = ntohl(nfh.flow_sequence); + nfh_version = g_ntohs(nfh.version); + nfh_count = g_ntohs(nfh.count); + nfh_sys_uptime = g_ntohl(nfh.sys_uptime); + nfh_unix_sec = g_ntohl(nfh.unix_sec); + nfh_unix_nsec = g_ntohl(nfh.unix_nsec); + nfh_sample_rate = g_ntohs(nfh.sample_rate); + nfh_sequence = g_ntohl(nfh.flow_sequence); if (check_col(pinfo->cinfo, COL_INFO)) col_add_fstr(pinfo->cinfo, COL_INFO, -- cgit v1.2.3