diff options
Diffstat (limited to 'net/ipv6/udplite.c')
| -rw-r--r-- | net/ipv6/udplite.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv6/udplite.c b/net/ipv6/udplite.c index 67eaf3ca14ce..8e010d07917a 100644 --- a/net/ipv6/udplite.c +++ b/net/ipv6/udplite.c @@ -8,6 +8,8 @@   *  Changes:   *  Fixes:   */ +#define pr_fmt(fmt) "UDPLite6: " fmt +  #include <linux/export.h>  #include <linux/proc_fs.h>  #include "udp_impl.h" @@ -16,6 +18,8 @@ static int udplitev6_sk_init(struct sock *sk)  {  	udpv6_init_sock(sk);  	udp_sk(sk)->pcflag = UDPLITE_BIT; +	pr_warn_once("UDP-Lite is deprecated and scheduled to be removed in 2025, " +		     "please contact the netdev mailing list\n");  	return 0;  } @@ -60,6 +64,8 @@ struct proto udplitev6_prot = {  	.per_cpu_fw_alloc  = &udp_memory_per_cpu_fw_alloc,  	.sysctl_mem	   = sysctl_udp_mem, +	.sysctl_wmem_offset = offsetof(struct net, ipv4.sysctl_udp_wmem_min), +	.sysctl_rmem_offset = offsetof(struct net, ipv4.sysctl_udp_rmem_min),  	.obj_size	   = sizeof(struct udp6_sock),  	.h.udp_table	   = &udplite_table,  };  | 
