aboutsummaryrefslogtreecommitdiffstats
path: root/packet-netflow.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-10-08 19:26:37 +0000
committerGuy Harris <guy@alum.mit.edu>2002-10-08 19:26:37 +0000
commit49c1aa93cf806c08f69c2bc1ec8285dd4aef5494 (patch)
treeec852b0d6963e7c7a19e9470d32604d95ae26870 /packet-netflow.c
parent99341267554bce00283e770bea70cc201d91ad7d (diff)
From Lutz Jaenicke: use "g_htonl()" rather than "htonl()".
svn path=/trunk/; revision=6381
Diffstat (limited to 'packet-netflow.c')
-rw-r--r--packet-netflow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-netflow.c b/packet-netflow.c
index e6c885baa1..504ffe624f 100644
--- a/packet-netflow.c
+++ b/packet-netflow.c
@@ -34,7 +34,7 @@
** are dissected as vendor specific fields.
**
** $Yahoo: //depot/fumerola/packet-netflow/packet-netflow.c#14 $
- ** $Id: packet-netflow.c,v 1.6 2002/10/08 08:50:04 guy Exp $
+ ** $Id: packet-netflow.c,v 1.7 2002/10/08 19:26:35 guy Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -797,7 +797,7 @@ getprefix(const guint32 * address, int prefix)
{
guint32 gprefix;
- gprefix = *address & htonl((0xffffffff << (32 - prefix)));
+ gprefix = *address & g_htonl((0xffffffff << (32 - prefix)));
return (ip_to_str((const guint8 *)&gprefix));
}