14 #define pr_fmt(fmt) "UDPLite: " fmt
16 #include <linux/export.h>
33 .handler = udplite_rcv,
34 .err_handler = udplite_err,
42 .close = udp_lib_close,
46 .init = udplite_sk_init,
61 .compat_setsockopt = compat_udp_setsockopt,
62 .compat_getsockopt = compat_udp_getsockopt,
91 .seq_fops = &udplite_afinfo_seq_fops,
93 .show = udp4_seq_show,
99 return udp_proc_register(net, &udplite4_seq_afinfo);
104 udp_proc_unregister(net, &udplite4_seq_afinfo);
108 .
init = udplite4_proc_init_net,
109 .exit = udplite4_proc_exit_net,
112 static __init int udplite4_proc_init(
void)
117 static inline int udplite4_proc_init(
void)
127 goto out_register_err;
130 goto out_unregister_proto;
134 if (udplite4_proc_init())
135 pr_err(
"%s: Cannot register /proc!\n", __func__);
138 out_unregister_proto:
141 pr_crit(
"%s: Cannot add UDP-Lite protocol\n", __func__);