aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udplite.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udplite.c')
-rw-r--r--net/ipv4/udplite.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/net/ipv4/udplite.c b/net/ipv4/udplite.c
index aee9963f7f5a..12e9499a1a6c 100644
--- a/net/ipv4/udplite.c
+++ b/net/ipv4/udplite.c
@@ -10,6 +10,7 @@
10 * as published by the Free Software Foundation; either version 10 * as published by the Free Software Foundation; either version
11 * 2 of the License, or (at your option) any later version. 11 * 2 of the License, or (at your option) any later version.
12 */ 12 */
13#include <linux/export.h>
13#include "udp_impl.h" 14#include "udp_impl.h"
14 15
15struct udp_table udplite_table __read_mostly; 16struct udp_table udplite_table __read_mostly;
@@ -71,13 +72,20 @@ static struct inet_protosw udplite4_protosw = {
71}; 72};
72 73
73#ifdef CONFIG_PROC_FS 74#ifdef CONFIG_PROC_FS
75
76static const struct file_operations udplite_afinfo_seq_fops = {
77 .owner = THIS_MODULE,
78 .open = udp_seq_open,
79 .read = seq_read,
80 .llseek = seq_lseek,
81 .release = seq_release_net
82};
83
74static struct udp_seq_afinfo udplite4_seq_afinfo = { 84static struct udp_seq_afinfo udplite4_seq_afinfo = {
75 .name = "udplite", 85 .name = "udplite",
76 .family = AF_INET, 86 .family = AF_INET,
77 .udp_table = &udplite_table, 87 .udp_table = &udplite_table,
78 .seq_fops = { 88 .seq_fops = &udplite_afinfo_seq_fops,
79 .owner = THIS_MODULE,
80 },
81 .seq_ops = { 89 .seq_ops = {
82 .show = udp4_seq_show, 90 .show = udp4_seq_show,
83 }, 91 },