Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266671
b: refs/heads/master
c: 97ba0eb
h: refs/heads/master
i:
  266669: 5c52e7a
  266667: 2ca54dd
  266663: 7190692
  266655: 97e97d5
v: v3
  • Loading branch information
David S. Miller committed Oct 13, 2011
1 parent a6fe983 commit 8d5f24b
Show file tree
Hide file tree
Showing 4 changed files with 9 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: a28dc43f1d8dfc4fe61c9b9505c1b902285c96b8
refs/heads/master: 97ba0eb64ca690165f945a83e609102fcefa99cb
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
2 changes: 1 addition & 1 deletion trunk/net/ipv4/cipso_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ int cipso_v4_doi_add(struct cipso_v4_doi *doi_def,
doi = doi_def->doi;
doi_type = doi_def->type;

if (doi_def == NULL || doi_def->doi == CIPSO_V4_DOI_UNKNOWN)
if (doi_def->doi == CIPSO_V4_DOI_UNKNOWN)
goto doi_add_return;
for (iter = 0; iter < CIPSO_V4_TAG_MAXCNT; iter++) {
switch (doi_def->tags[iter]) {
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 8d5f24b

Please sign in to comment.