Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278540
b: refs/heads/master
c: 7b35ead
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Dec 9, 2011
1 parent cc9b737 commit ba5f45e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 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: a73ed26bbae7327370c5bd298f07de78df9e3466
refs/heads/master: 7b35eadd7eee2e0b42421ce3efbc30f1c3c745e5
1 change: 0 additions & 1 deletion trunk/include/linux/inet_diag.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ struct inet_diag_handler {
void (*idiag_get_info)(struct sock *sk,
struct inet_diag_msg *r,
void *info);
__u16 idiag_info_size;
__u16 idiag_type;
};

Expand Down
1 change: 0 additions & 1 deletion trunk/net/dccp/diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ static const struct inet_diag_handler dccp_diag_handler = {
.idiag_hashinfo = &dccp_hashinfo,
.idiag_get_info = dccp_diag_get_info,
.idiag_type = IPPROTO_DCCP,
.idiag_info_size = sizeof(struct tcp_info),
};

static int __init dccp_diag_init(void)
Expand Down
5 changes: 2 additions & 3 deletions trunk/net/ipv4/inet_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ static int inet_csk_diag_fill(struct sock *sk,
minfo = INET_DIAG_PUT(skb, INET_DIAG_MEMINFO, sizeof(*minfo));

if (ext & (1 << (INET_DIAG_INFO - 1)))
info = INET_DIAG_PUT(skb, INET_DIAG_INFO,
handler->idiag_info_size);
info = INET_DIAG_PUT(skb, INET_DIAG_INFO, sizeof(struct tcp_info));

if ((ext & (1 << (INET_DIAG_CONG - 1))) && icsk->icsk_ca_ops) {
const size_t len = strlen(icsk->icsk_ca_ops->name);
Expand Down Expand Up @@ -299,7 +298,7 @@ static int inet_diag_get_exact(struct sk_buff *in_skb,
err = -ENOMEM;
rep = alloc_skb(NLMSG_SPACE((sizeof(struct inet_diag_msg) +
sizeof(struct inet_diag_meminfo) +
handler->idiag_info_size + 64)),
sizeof(struct tcp_info) + 64)),
GFP_KERNEL);
if (!rep)
goto out;
Expand Down
1 change: 0 additions & 1 deletion trunk/net/ipv4/tcp_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ static const struct inet_diag_handler tcp_diag_handler = {
.idiag_hashinfo = &tcp_hashinfo,
.idiag_get_info = tcp_diag_get_info,
.idiag_type = IPPROTO_TCP,
.idiag_info_size = sizeof(struct tcp_info),
};

static int __init tcp_diag_init(void)
Expand Down

0 comments on commit ba5f45e

Please sign in to comment.