Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7126
b: refs/heads/master
c: aa07ca5
h: refs/heads/master
v: v3
  • Loading branch information
Harald Welte authored and David S. Miller committed Sep 6, 2005
1 parent d6a1459 commit af310d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 506e7beb7468c7cf56370d0a7a6afbec56653473
refs/heads/master: aa07ca5793414ce257ad98809147bd1dbb7a3837
15 changes: 2 additions & 13 deletions trunk/net/netfilter/nfnetlink_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ typedef int (*nfqnl_cmpfn)(struct nfqnl_queue_entry *, unsigned long);

static DEFINE_RWLOCK(instances_lock);

static u_int64_t htonll(u_int64_t in)
{
u_int64_t out;
int i;

for (i = 0; i < sizeof(u_int64_t); i++)
((u_int8_t *)&out)[sizeof(u_int64_t)-1] = ((u_int8_t *)&in)[i];

return out;
}

#define INSTANCE_BUCKETS 16
static struct hlist_head instance_table[INSTANCE_BUCKETS];

Expand Down Expand Up @@ -497,8 +486,8 @@ nfqnl_build_packet_message(struct nfqnl_instance *queue,
if (entry->skb->tstamp.off_sec) {
struct nfqnl_msg_packet_timestamp ts;

ts.sec = htonll(skb_tv_base.tv_sec + entry->skb->tstamp.off_sec);
ts.usec = htonll(skb_tv_base.tv_usec + entry->skb->tstamp.off_usec);
ts.sec = cpu_to_be64(skb_tv_base.tv_sec + entry->skb->tstamp.off_sec);
ts.usec = cpu_to_be64(skb_tv_base.tv_usec + entry->skb->tstamp.off_usec);

NFA_PUT(skb, NFQA_TIMESTAMP, sizeof(ts), &ts);
}
Expand Down

0 comments on commit af310d9

Please sign in to comment.