Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369821
b: refs/heads/master
c: 00bd1cc
h: refs/heads/master
i:
  369819: cd066a2
v: v3
  • Loading branch information
Florian Westphal authored and Pablo Neira Ayuso committed Apr 29, 2013
1 parent 6394f68 commit c121772
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 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: 7237190df8c4129241697530a4eecabdc4ecc66e
refs/heads/master: 00bd1cc24a7dd295ee095dc50791aab6ede46c7a
3 changes: 2 additions & 1 deletion trunk/include/uapi/linux/netfilter/nfnetlink_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ enum nfqnl_attr_config {
/* Flags for NFQA_CFG_FLAGS */
#define NFQA_CFG_F_FAIL_OPEN (1 << 0)
#define NFQA_CFG_F_CONNTRACK (1 << 1)
#define NFQA_CFG_F_MAX (1 << 2)
#define NFQA_CFG_F_GSO (1 << 2)
#define NFQA_CFG_F_MAX (1 << 3)

/* flags for NFQA_SKB_INFO */
/* packet appears to have wrong checksums, but they are ok */
Expand Down
5 changes: 3 additions & 2 deletions trunk/net/netfilter/nfnetlink_queue_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ nfqnl_build_packet_message(struct nfqnl_instance *queue,
break;

case NFQNL_COPY_PACKET:
if (entskb->ip_summed == CHECKSUM_PARTIAL &&
if (!(queue->flags & NFQA_CFG_F_GSO) &&
entskb->ip_summed == CHECKSUM_PARTIAL &&
skb_checksum_help(entskb))
return NULL;

Expand Down Expand Up @@ -636,7 +637,7 @@ nfqnl_enqueue_packet(struct nf_queue_entry *entry, unsigned int queuenum)
if (queue->copy_mode == NFQNL_COPY_NONE)
return -EINVAL;

if (!skb_is_gso(entry->skb))
if ((queue->flags & NFQA_CFG_F_GSO) || !skb_is_gso(entry->skb))
return __nfqnl_enqueue_packet(net, queue, entry);

skb = entry->skb;
Expand Down

0 comments on commit c121772

Please sign in to comment.