sock.c (b9f40e21ef4298650ab33e35740fa85bd57706d5) sock.c (09c2d251b70723650ba47e83571ff49281320f7c)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Generic socket support routines. Memory allocators, socket lock/release
7 * handler for protocols to use and generic option handler.
8 *

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

843 }
844 break;
845
846 case SO_TIMESTAMPING:
847 if (val & ~SOF_TIMESTAMPING_MASK) {
848 ret = -EINVAL;
849 break;
850 }
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Generic socket support routines. Memory allocators, socket lock/release
7 * handler for protocols to use and generic option handler.
8 *

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

843 }
844 break;
845
846 case SO_TIMESTAMPING:
847 if (val & ~SOF_TIMESTAMPING_MASK) {
848 ret = -EINVAL;
849 break;
850 }
851 if (val & SOF_TIMESTAMPING_OPT_ID &&
852 !(sk->sk_tsflags & SOF_TIMESTAMPING_OPT_ID))
853 sk->sk_tskey = 0;
851 sk->sk_tsflags = val;
852 if (val & SOF_TIMESTAMPING_RX_SOFTWARE)
853 sock_enable_timestamp(sk,
854 SOCK_TIMESTAMPING_RX_SOFTWARE);
855 else
856 sock_disable_timestamp(sk,
857 (1UL << SOCK_TIMESTAMPING_RX_SOFTWARE));
858 break;

--- 2115 unchanged lines hidden ---
854 sk->sk_tsflags = val;
855 if (val & SOF_TIMESTAMPING_RX_SOFTWARE)
856 sock_enable_timestamp(sk,
857 SOCK_TIMESTAMPING_RX_SOFTWARE);
858 else
859 sock_disable_timestamp(sk,
860 (1UL << SOCK_TIMESTAMPING_RX_SOFTWARE));
861 break;

--- 2115 unchanged lines hidden ---