Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3018
b: refs/heads/master
c: 056ede6
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jun 23, 2005
1 parent e2aef6c commit bc81fc0
Show file tree
Hide file tree
Showing 3 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: 7c99c909fa69a183c1b80bd64fb9f0d11459aff3
refs/heads/master: 056ede6cface66b400cd3b8e60ed077cc5b85c18
4 changes: 2 additions & 2 deletions trunk/include/linux/tcp_diag.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ enum
TCPDIAG_MEMINFO,
TCPDIAG_INFO,
TCPDIAG_VEGASINFO,
TCPDIAG_CONG,
};

#define TCPDIAG_MAX TCPDIAG_VEGASINFO
#define TCPDIAG_MAX TCPDIAG_CONG


/* TCPDIAG_MEM */
Expand All @@ -123,5 +124,4 @@ struct tcpvegas_info {
__u32 tcpv_minrtt;
};


#endif /* _TCP_DIAG_H_ */
5 changes: 5 additions & 0 deletions trunk/net/ipv4/tcp_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ static int tcpdiag_fill(struct sk_buff *skb, struct sock *sk,
if (ext & (1<<(TCPDIAG_INFO-1)))
info = TCPDIAG_PUT(skb, TCPDIAG_INFO, sizeof(*info));

if (ext & (1<<(TCPDIAG_CONG-1))) {
size_t len = strlen(tp->ca_ops->name);
strcpy(TCPDIAG_PUT(skb, TCPDIAG_CONG, len+1),
tp->ca_ops->name);
}
}
r->tcpdiag_family = sk->sk_family;
r->tcpdiag_state = sk->sk_state;
Expand Down

0 comments on commit bc81fc0

Please sign in to comment.