In IPv4, with the raw socket and the SIO_RCVALL control code (IOControlCode.ReceiveAll), it can receive all the incoming packets and acts as an network sniffer.

However, SIO_RCVALL (IOControlCode.ReceiverAll) is designed for IPv4 only. (I alway got the 10022 ErrorCode. ) If I want to do the same thing for IPv6, what control code should I use?

Thanks!