Loading include/net/tcp.h +1 −1 Original line number Diff line number Diff line Loading @@ -1328,7 +1328,7 @@ struct tcp_seq_afinfo { struct module *owner; char *name; sa_family_t family; struct file_operations *seq_fops; struct file_operations seq_fops; struct seq_operations seq_ops; }; Loading net/ipv4/tcp_ipv4.c +6 −9 Original line number Diff line number Diff line Loading @@ -2232,17 +2232,17 @@ int tcp_proc_register(struct net *net, struct tcp_seq_afinfo *afinfo) int rc = 0; struct proc_dir_entry *p; afinfo->seq_fops->owner = afinfo->owner; afinfo->seq_fops->open = tcp_seq_open; afinfo->seq_fops->read = seq_read; afinfo->seq_fops->llseek = seq_lseek; afinfo->seq_fops->release = seq_release_net; afinfo->seq_fops.owner = afinfo->owner; afinfo->seq_fops.open = tcp_seq_open; afinfo->seq_fops.read = seq_read; afinfo->seq_fops.llseek = seq_lseek; afinfo->seq_fops.release = seq_release_net; afinfo->seq_ops.start = tcp_seq_start; afinfo->seq_ops.next = tcp_seq_next; afinfo->seq_ops.stop = tcp_seq_stop; p = proc_net_fops_create(net, afinfo->name, S_IRUGO, afinfo->seq_fops); p = proc_net_fops_create(net, afinfo->name, S_IRUGO, &afinfo->seq_fops); if (p) p->data = afinfo; else Loading @@ -2253,7 +2253,6 @@ int tcp_proc_register(struct net *net, struct tcp_seq_afinfo *afinfo) void tcp_proc_unregister(struct net *net, struct tcp_seq_afinfo *afinfo) { proc_net_remove(net, afinfo->name); memset(afinfo->seq_fops, 0, sizeof(*afinfo->seq_fops)); } static void get_openreq4(struct sock *sk, struct request_sock *req, Loading Loading @@ -2382,12 +2381,10 @@ static int tcp4_seq_show(struct seq_file *seq, void *v) return 0; } static struct file_operations tcp4_seq_fops; static struct tcp_seq_afinfo tcp4_seq_afinfo = { .owner = THIS_MODULE, .name = "tcp", .family = AF_INET, .seq_fops = &tcp4_seq_fops, .seq_ops = { .show = tcp4_seq_show, }, Loading net/ipv6/tcp_ipv6.c +0 −2 Original line number Diff line number Diff line Loading @@ -2120,12 +2120,10 @@ static int tcp6_seq_show(struct seq_file *seq, void *v) return 0; } static struct file_operations tcp6_seq_fops; static struct tcp_seq_afinfo tcp6_seq_afinfo = { .owner = THIS_MODULE, .name = "tcp6", .family = AF_INET6, .seq_fops = &tcp6_seq_fops, .seq_ops = { .show = tcp6_seq_show, }, Loading Loading
include/net/tcp.h +1 −1 Original line number Diff line number Diff line Loading @@ -1328,7 +1328,7 @@ struct tcp_seq_afinfo { struct module *owner; char *name; sa_family_t family; struct file_operations *seq_fops; struct file_operations seq_fops; struct seq_operations seq_ops; }; Loading
net/ipv4/tcp_ipv4.c +6 −9 Original line number Diff line number Diff line Loading @@ -2232,17 +2232,17 @@ int tcp_proc_register(struct net *net, struct tcp_seq_afinfo *afinfo) int rc = 0; struct proc_dir_entry *p; afinfo->seq_fops->owner = afinfo->owner; afinfo->seq_fops->open = tcp_seq_open; afinfo->seq_fops->read = seq_read; afinfo->seq_fops->llseek = seq_lseek; afinfo->seq_fops->release = seq_release_net; afinfo->seq_fops.owner = afinfo->owner; afinfo->seq_fops.open = tcp_seq_open; afinfo->seq_fops.read = seq_read; afinfo->seq_fops.llseek = seq_lseek; afinfo->seq_fops.release = seq_release_net; afinfo->seq_ops.start = tcp_seq_start; afinfo->seq_ops.next = tcp_seq_next; afinfo->seq_ops.stop = tcp_seq_stop; p = proc_net_fops_create(net, afinfo->name, S_IRUGO, afinfo->seq_fops); p = proc_net_fops_create(net, afinfo->name, S_IRUGO, &afinfo->seq_fops); if (p) p->data = afinfo; else Loading @@ -2253,7 +2253,6 @@ int tcp_proc_register(struct net *net, struct tcp_seq_afinfo *afinfo) void tcp_proc_unregister(struct net *net, struct tcp_seq_afinfo *afinfo) { proc_net_remove(net, afinfo->name); memset(afinfo->seq_fops, 0, sizeof(*afinfo->seq_fops)); } static void get_openreq4(struct sock *sk, struct request_sock *req, Loading Loading @@ -2382,12 +2381,10 @@ static int tcp4_seq_show(struct seq_file *seq, void *v) return 0; } static struct file_operations tcp4_seq_fops; static struct tcp_seq_afinfo tcp4_seq_afinfo = { .owner = THIS_MODULE, .name = "tcp", .family = AF_INET, .seq_fops = &tcp4_seq_fops, .seq_ops = { .show = tcp4_seq_show, }, Loading
net/ipv6/tcp_ipv6.c +0 −2 Original line number Diff line number Diff line Loading @@ -2120,12 +2120,10 @@ static int tcp6_seq_show(struct seq_file *seq, void *v) return 0; } static struct file_operations tcp6_seq_fops; static struct tcp_seq_afinfo tcp6_seq_afinfo = { .owner = THIS_MODULE, .name = "tcp6", .family = AF_INET6, .seq_fops = &tcp6_seq_fops, .seq_ops = { .show = tcp6_seq_show, }, Loading