Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff '--color=auto' -u20 -r a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
- --- a/net/ipv4/af_inet.c 2026-06-09 13:28:53.000000000 +0300
- +++ b/net/ipv4/af_inet.c 2026-06-15 16:27:15.810080729 +0300
- @@ -1959,41 +1959,41 @@
- arp_init();
- /*
- * Set the IP module up
- */
- ip_init();
- /* Initialise per-cpu ipv4 mibs */
- if (init_ipv4_mibs())
- panic("%s: Cannot init ipv4 mibs\n", __func__);
- /* Setup TCP slab cache for open requests. */
- tcp_init();
- /* Setup UDP memory threshold */
- udp_init();
- /* Add UDP-Lite (RFC 3828) */
- - udplite4_register();
- + // udplite4_register();
- raw_init();
- ping_init();
- /*
- * Set the ICMP layer up
- */
- if (icmp_init() < 0)
- panic("Failed to create the ICMP control socket.\n");
- /*
- * Initialise the multicast router
- */
- #if defined(CONFIG_IP_MROUTE)
- if (ip_mr_init())
- pr_crit("%s: Cannot init ipv4 mroute\n", __func__);
- #endif
- diff '--color=auto' -u20 -r a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
- --- a/net/ipv6/af_inet6.c 2026-06-09 13:28:53.000000000 +0300
- +++ b/net/ipv6/af_inet6.c 2026-06-15 16:27:47.118081323 +0300
- @@ -1079,43 +1079,43 @@
- /* Register the socket-side information for inet6_create. */
- for (r = &inetsw6[0]; r < &inetsw6[SOCK_MAX]; ++r)
- INIT_LIST_HEAD(r);
- raw_hashinfo_init(&raw_v6_hashinfo);
- if (disable_ipv6_mod) {
- pr_info("Loaded, but administratively disabled, reboot required to enable\n");
- goto out;
- }
- err = proto_register(&tcpv6_prot, 1);
- if (err)
- goto out;
- err = proto_register(&udpv6_prot, 1);
- if (err)
- goto out_unregister_tcp_proto;
- - err = proto_register(&udplitev6_prot, 1);
- - if (err)
- - goto out_unregister_udp_proto;
- + // err = proto_register(&udplitev6_prot, 1);
- + // if (err)
- + // goto out_unregister_udp_proto;
- err = proto_register(&rawv6_prot, 1);
- if (err)
- goto out_unregister_udplite_proto;
- err = proto_register(&pingv6_prot, 1);
- if (err)
- goto out_unregister_raw_proto;
- /* We MUST register RAW sockets before we create the ICMP6,
- * IGMP6, or NDISC control sockets.
- */
- err = rawv6_init();
- if (err)
- goto out_unregister_ping_proto;
- /* Register the family here so that the init calls below will
- * be able to create sockets. (?? is this dangerous ??)
- */
- err = sock_register(&inet6_family_ops);
- @@ -1296,30 +1296,30 @@
- netfilter_fail:
- igmp6_cleanup();
- igmp_fail:
- ndisc_cleanup();
- ndisc_fail:
- icmpv6_cleanup();
- icmp_fail:
- ip6_mr_cleanup();
- ipmr_fail:
- unregister_pernet_subsys(&inet6_net_ops);
- register_pernet_fail:
- sock_unregister(PF_INET6);
- rtnl_unregister_all(PF_INET6);
- out_sock_register_fail:
- rawv6_exit();
- out_unregister_ping_proto:
- proto_unregister(&pingv6_prot);
- out_unregister_raw_proto:
- proto_unregister(&rawv6_prot);
- out_unregister_udplite_proto:
- - proto_unregister(&udplitev6_prot);
- + // proto_unregister(&udplitev6_prot);
- out_unregister_udp_proto:
- proto_unregister(&udpv6_prot);
- out_unregister_tcp_proto:
- proto_unregister(&tcpv6_prot);
- goto out;
- }
- module_init(inet6_init);
- MODULE_ALIAS_NETPROTO(PF_INET6);
Advertisement
Add Comment
Please, Sign In to add comment