Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266659
b: refs/heads/master
c: 3ceca74
h: refs/heads/master
i:
  266657: dc13a00
  266655: 97e97d5
v: v3
  • Loading branch information
Murali Raja authored and David S. Miller committed Oct 12, 2011
1 parent b9dc581 commit 5b464df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 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: 56755924100261b8e52dca68ca53ece54b6f64ad
refs/heads/master: 3ceca749668a52bd795585e0f71c6f0b04814f7b
3 changes: 2 additions & 1 deletion trunk/include/linux/inet_diag.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ enum {
INET_DIAG_INFO,
INET_DIAG_VEGASINFO,
INET_DIAG_CONG,
INET_DIAG_TOS,
};

#define INET_DIAG_MAX INET_DIAG_CONG
#define INET_DIAG_MAX INET_DIAG_TOS


/* INET_DIAG_MEM */
Expand Down
5 changes: 5 additions & 0 deletions trunk/net/ipv4/inet_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ static int inet_csk_diag_fill(struct sock *sk,
icsk->icsk_ca_ops->name);
}

if ((ext & (1 << (INET_DIAG_TOS - 1))) && (sk->sk_family != AF_INET6))
RTA_PUT_U8(skb, INET_DIAG_TOS, inet->tos);

r->idiag_family = sk->sk_family;
r->idiag_state = sk->sk_state;
r->idiag_timer = 0;
Expand All @@ -130,6 +133,8 @@ static int inet_csk_diag_fill(struct sock *sk,
&np->rcv_saddr);
ipv6_addr_copy((struct in6_addr *)r->id.idiag_dst,
&np->daddr);
if (ext & (1 << (INET_DIAG_TOS - 1)))
RTA_PUT_U8(skb, INET_DIAG_TOS, np->tclass);
}
#endif

Expand Down

0 comments on commit 5b464df

Please sign in to comment.