Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36843
b: refs/heads/master
c: 269bd27
h: refs/heads/master
i:
  36841: fcecce7
  36839: 933f3ff
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Sep 29, 2006
1 parent 9333fc0 commit 62c4e6e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 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: 46a97324a5ebdc1e343a0223d993e79551adab0f
refs/heads/master: 269bd27e66037a7932cee6d6aa7ef7defd0bfe38
5 changes: 5 additions & 0 deletions trunk/include/linux/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ struct tcp_info
#include <net/inet_timewait_sock.h>

/* This defines a selective acknowledgement block. */
struct tcp_sack_block_wire {
__be32 start_seq;
__be32 end_seq;
};

struct tcp_sack_block {
__u32 start_seq;
__u32 end_seq;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/netfilter/ip_nat_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ sack_adjust(struct sk_buff *skb,
struct ip_nat_seq *natseq)
{
while (sackoff < sackend) {
struct tcp_sack_block *sack;
struct tcp_sack_block_wire *sack;
u_int32_t new_start_seq, new_end_seq;

sack = (void *)skb->data + sackoff;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ tcp_sacktag_write_queue(struct sock *sk, struct sk_buff *ack_skb, u32 prior_snd_
const struct inet_connection_sock *icsk = inet_csk(sk);
struct tcp_sock *tp = tcp_sk(sk);
unsigned char *ptr = ack_skb->h.raw + TCP_SKB_CB(ack_skb)->sacked;
struct tcp_sack_block *sp = (struct tcp_sack_block *)(ptr+2);
struct tcp_sack_block_wire *sp = (struct tcp_sack_block_wire *)(ptr+2);
int num_sacks = (ptr[1] - TCPOLEN_SACK_BASE)>>3;
int reord = tp->packets_out;
int prior_fackets;
Expand Down

0 comments on commit 62c4e6e

Please sign in to comment.