summaryrefslogtreecommitdiffstats
path: root/src/conntrack/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conntrack/parse.c')
-rw-r--r--src/conntrack/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conntrack/parse.c b/src/conntrack/parse.c
index bfa6ae0..4718cfe 100644
--- a/src/conntrack/parse.c
+++ b/src/conntrack/parse.c
@@ -193,7 +193,7 @@ static void __parse_counters(const struct nfattr *attr,
nfnl_parse_nested(tb, CTA_COUNTERS_MAX, attr);
if (tb[CTA_COUNTERS32_PACKETS-1]) {
ct->counters[dir].packets
- = htonl(*(u_int32_t *)
+ = ntohl(*(u_int32_t *)
NFA_DATA(tb[CTA_COUNTERS32_PACKETS-1]));
switch(dir) {
case __DIR_ORIG:
@@ -206,7 +206,7 @@ static void __parse_counters(const struct nfattr *attr,
}
if (tb[CTA_COUNTERS32_BYTES-1]) {
ct->counters[dir].bytes
- = htonl(*(u_int32_t *)
+ = ntohl(*(u_int32_t *)
NFA_DATA(tb[CTA_COUNTERS32_BYTES-1]));
switch(dir) {
case __DIR_ORIG: