title: How to send raw socket packets using Winsock Kernel (WSK) in kernel-mode driver?
body: <p>I am developing a <strong>kernel-mode driver</strong> for Win7 and later. I want to send <strong>custom IP packets</strong> in the driver (I want to specify all fields for IP layer). I found the <strong>Winsock Kernel (WSK)</strong> technique but it only said how to send and receive TCP and UDP packets. I know that in user-mode, there is <strong>raw socket</strong> in WinSock API. So I wonder <strong>if there is also a raw socket interface for Winsock Kernel</strong>? Thanks.</p>