I just wonder if we could enable the support for AF_INET / AF_INET6, SOCK_RAW sockets. We already have that for UDP packets. We only need to add a line of sock_tx_timestamp(sk, &ipc.tx_flags) after net/ipv4/raw.c:525, and change net/ipv6/ip6_output.c:1257 to if (sk->sk_type == SOCK_DGRAM || sk->sk_type == SOCK_RAW).