af_inet.c (4353dd3b70783ebbc83fcf12d9c0af3fbab0223b) af_inet.c (4f80116d3df3b23ee4b83ea8557629e1799bc230)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
5 * interface as the means of communication with the user level.
6 *
7 * PF_INET protocol family socket handler.
8 *

--- 1821 unchanged lines hidden (view full) ---

1830 * We set them here, in case sysctl is not compiled.
1831 */
1832 net->ipv4.sysctl_ip_default_ttl = IPDEFTTL;
1833 net->ipv4.sysctl_ip_fwd_update_priority = 1;
1834 net->ipv4.sysctl_ip_dynaddr = 0;
1835 net->ipv4.sysctl_ip_early_demux = 1;
1836 net->ipv4.sysctl_udp_early_demux = 1;
1837 net->ipv4.sysctl_tcp_early_demux = 1;
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
5 * interface as the means of communication with the user level.
6 *
7 * PF_INET protocol family socket handler.
8 *

--- 1821 unchanged lines hidden (view full) ---

1830 * We set them here, in case sysctl is not compiled.
1831 */
1832 net->ipv4.sysctl_ip_default_ttl = IPDEFTTL;
1833 net->ipv4.sysctl_ip_fwd_update_priority = 1;
1834 net->ipv4.sysctl_ip_dynaddr = 0;
1835 net->ipv4.sysctl_ip_early_demux = 1;
1836 net->ipv4.sysctl_udp_early_demux = 1;
1837 net->ipv4.sysctl_tcp_early_demux = 1;
1838 net->ipv4.sysctl_nexthop_compat_mode = 1;
1838#ifdef CONFIG_SYSCTL
1839 net->ipv4.sysctl_ip_prot_sock = PROT_SOCK;
1840#endif
1841
1842 /* Some igmp sysctl, whose values are always used */
1843 net->ipv4.sysctl_igmp_max_memberships = 20;
1844 net->ipv4.sysctl_igmp_max_msf = 10;
1845 /* IGMP reports for link-local multicast groups are enabled by default */

--- 63 unchanged lines hidden (view full) ---

1909 .func = ip_rcv,
1910 .list_func = ip_list_rcv,
1911};
1912
1913static int __init inet_init(void)
1914{
1915 struct inet_protosw *q;
1916 struct list_head *r;
1839#ifdef CONFIG_SYSCTL
1840 net->ipv4.sysctl_ip_prot_sock = PROT_SOCK;
1841#endif
1842
1843 /* Some igmp sysctl, whose values are always used */
1844 net->ipv4.sysctl_igmp_max_memberships = 20;
1845 net->ipv4.sysctl_igmp_max_msf = 10;
1846 /* IGMP reports for link-local multicast groups are enabled by default */

--- 63 unchanged lines hidden (view full) ---

1910 .func = ip_rcv,
1911 .list_func = ip_list_rcv,
1912};
1913
1914static int __init inet_init(void)
1915{
1916 struct inet_protosw *q;
1917 struct list_head *r;
1917 int rc = -EINVAL;
1918 int rc;
1918
1919 sock_skb_cb_check_size(sizeof(struct inet_skb_parm));
1920
1921 rc = proto_register(&tcp_prot, 1);
1922 if (rc)
1923 goto out;
1924
1925 rc = proto_register(&udp_prot, 1);

--- 152 unchanged lines hidden ---
1919
1920 sock_skb_cb_check_size(sizeof(struct inet_skb_parm));
1921
1922 rc = proto_register(&tcp_prot, 1);
1923 if (rc)
1924 goto out;
1925
1926 rc = proto_register(&udp_prot, 1);

--- 152 unchanged lines hidden ---