3 @@ -95,6 +95,9 @@ source "net/netlabel/Kconfig"
10 config NETWORK_SECMARK
11 bool "Security Marking"
13 --- a/net/core/Makefile
14 +++ b/net/core/Makefile
15 @@ -9,8 +9,9 @@ obj-$(CONFIG_SYSCTL) += sysctl_net_core.
17 obj-y += dev.o ethtool.o dev_addr_lists.o dst.o netevent.o \
18 neighbour.o rtnetlink.o utils.o link_watch.o filter.o \
19 - sock_diag.o dev_ioctl.o tso.o sock_reuseport.o
20 + dev_ioctl.o tso.o sock_reuseport.o
22 +obj-$(CONFIG_SOCK_DIAG) += sock_diag.o
23 obj-$(CONFIG_XFRM) += flow.o
25 obj-$(CONFIG_PROC_FS) += net-procfs.o
28 @@ -1455,9 +1455,11 @@ void sk_destruct(struct sock *sk)
30 static void __sk_free(struct sock *sk)
32 +#ifdef CONFIG_SOCK_DIAG
33 if (unlikely(sock_diag_has_destroy_listeners(sk) && sk->sk_net_refcnt))
34 sock_diag_broadcast_destroy(sk);
40 --- a/net/ipv4/Kconfig
41 +++ b/net/ipv4/Kconfig
42 @@ -408,6 +408,7 @@ config INET_XFRM_MODE_BEET
45 tristate "INET: socket monitoring interface"
49 Support for INET (TCP, DCCP, etc) socket monitoring interface used by
50 --- a/net/unix/Kconfig
51 +++ b/net/unix/Kconfig
52 @@ -22,6 +22,7 @@ config UNIX
54 tristate "UNIX: socket monitoring interface"
59 Support for UNIX socket monitoring interface used by the ss tool.
60 --- a/net/netlink/Kconfig
61 +++ b/net/netlink/Kconfig
65 tristate "NETLINK: socket monitoring interface"
69 Support for NETLINK socket monitoring interface used by the ss tool.
70 --- a/net/packet/Kconfig
71 +++ b/net/packet/Kconfig
72 @@ -18,6 +18,7 @@ config PACKET
74 tristate "Packet: sockets monitoring interface"
79 Support for PF_PACKET sockets monitoring interface used by the ss tool.