Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203962
b: refs/heads/master
c: 98b0e84
h: refs/heads/master
v: v3
  • Loading branch information
Changli Gao authored and Patrick McHardy committed Jul 5, 2010
1 parent a15959f commit e551ee4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: ea8fbe8f198edea19116d4b61267e12235513225
refs/heads/master: 98b0e84aaaf2be6c40998d011c9db96ea6498e20
10 changes: 5 additions & 5 deletions trunk/net/ipv4/netfilter/ipt_REJECT.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ static void send_reset(struct sk_buff *oldskb, int hook)
}

tcph->rst = 1;
tcph->check = tcp_v4_check(sizeof(struct tcphdr),
niph->saddr, niph->daddr,
csum_partial(tcph,
sizeof(struct tcphdr), 0));
tcph->check = ~tcp_v4_check(sizeof(struct tcphdr), niph->saddr,
niph->daddr, 0);
nskb->ip_summed = CHECKSUM_PARTIAL;
nskb->csum_start = (unsigned char *)tcph - nskb->head;
nskb->csum_offset = offsetof(struct tcphdr, check);

addr_type = RTN_UNSPEC;
if (hook != NF_INET_FORWARD
Expand All @@ -115,7 +116,6 @@ static void send_reset(struct sk_buff *oldskb, int hook)
goto free_nskb;

niph->ttl = dst_metric(skb_dst(nskb), RTAX_HOPLIMIT);
nskb->ip_summed = CHECKSUM_NONE;

/* "Never happens" */
if (nskb->len > dst_mtu(skb_dst(nskb)))
Expand Down

0 comments on commit e551ee4

Please sign in to comment.