ACCOUNT: transfer table data in host order

Make compatibility happy.
This commit is contained in:
Jan Engelhardt
2009-11-04 23:37:34 +01:00
parent 6ee71ed485
commit 359ecc7a8c
2 changed files with 3 additions and 3 deletions

View File

@@ -746,7 +746,7 @@ static int ipt_acc_handle_copy_data(void *to_user, unsigned long *to_user_pos,
for (i = 0; i <= 255; i++) {
if (data->ip[i].src_packets || data->ip[i].dst_packets) {
handle_ip.ip = htonl(net_ip | net_OR_mask | i);
handle_ip.ip = net_ip | net_OR_mask | i;
handle_ip.src_packets = data->ip[i].src_packets;
handle_ip.src_bytes = data->ip[i].src_bytes;