aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-09-27 02:20:08 -0400
committerDavid S. Miller <davem@davemloft.net>2011-09-27 02:20:08 -0400
commitb82d1bb4fd206ed305f9e955eeffc4a678149442 (patch)
treeb0790dcc52f9b070e0b646eb6c0b7a16ac8c4a1a /net/ipv4/tcp_ipv4.c
parent3f192795cf1a0098df7bd655f7a72eee26bd63c3 (diff)
tcp: unalias tcp_skb_cb flags and ip_dsfield
struct tcp_skb_cb contains a "flags" field containing either tcp flags or IP dsfield depending on context (input or output path) Introduce ip_dsfield to make the difference clear and ease maintenance. If later we want to save space, we can union flags/ip_dsfield Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index c29912cd83a0..dd3fad9fb633 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -1677,7 +1677,7 @@ int tcp_v4_rcv(struct sk_buff *skb)
1677 skb->len - th->doff * 4); 1677 skb->len - th->doff * 4);
1678 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); 1678 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq);
1679 TCP_SKB_CB(skb)->when = 0; 1679 TCP_SKB_CB(skb)->when = 0;
1680 TCP_SKB_CB(skb)->flags = iph->tos; 1680 TCP_SKB_CB(skb)->ip_dsfield = ipv4_get_dsfield(iph);
1681 TCP_SKB_CB(skb)->sacked = 0; 1681 TCP_SKB_CB(skb)->sacked = 0;
1682 1682
1683 sk = __inet_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest); 1683 sk = __inet_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest);