diff options
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index 844f26fab06f..a5a9f8e3bb25 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <net/ip.h> | 19 | #include <net/ip.h> |
20 | #include <net/route.h> | 20 | #include <net/route.h> |
21 | #include <net/tcp.h> | 21 | #include <net/tcp.h> |
22 | #include <net/udp.h> | ||
22 | #include <net/cipso_ipv4.h> | 23 | #include <net/cipso_ipv4.h> |
23 | #include <net/inet_frag.h> | 24 | #include <net/inet_frag.h> |
24 | 25 | ||
@@ -812,6 +813,36 @@ static struct ctl_table ipv4_table[] = { | |||
812 | .mode = 0644, | 813 | .mode = 0644, |
813 | .proc_handler = &proc_dointvec, | 814 | .proc_handler = &proc_dointvec, |
814 | }, | 815 | }, |
816 | { | ||
817 | .ctl_name = CTL_UNNUMBERED, | ||
818 | .procname = "udp_mem", | ||
819 | .data = &sysctl_udp_mem, | ||
820 | .maxlen = sizeof(sysctl_udp_mem), | ||
821 | .mode = 0644, | ||
822 | .proc_handler = &proc_dointvec_minmax, | ||
823 | .strategy = &sysctl_intvec, | ||
824 | .extra1 = &zero | ||
825 | }, | ||
826 | { | ||
827 | .ctl_name = CTL_UNNUMBERED, | ||
828 | .procname = "udp_rmem_min", | ||
829 | .data = &sysctl_udp_rmem_min, | ||
830 | .maxlen = sizeof(sysctl_udp_rmem_min), | ||
831 | .mode = 0644, | ||
832 | .proc_handler = &proc_dointvec_minmax, | ||
833 | .strategy = &sysctl_intvec, | ||
834 | .extra1 = &zero | ||
835 | }, | ||
836 | { | ||
837 | .ctl_name = CTL_UNNUMBERED, | ||
838 | .procname = "udp_wmem_min", | ||
839 | .data = &sysctl_udp_wmem_min, | ||
840 | .maxlen = sizeof(sysctl_udp_wmem_min), | ||
841 | .mode = 0644, | ||
842 | .proc_handler = &proc_dointvec_minmax, | ||
843 | .strategy = &sysctl_intvec, | ||
844 | .extra1 = &zero | ||
845 | }, | ||
815 | { .ctl_name = 0 } | 846 | { .ctl_name = 0 } |
816 | }; | 847 | }; |
817 | 848 | ||