Sniffer application I wrote like 14 years ago when working on this project to capture H.323 packets for a call manager software I had to build. Here is just the rawsocket bit of the solution. Written in C# and Visual C++ .NET.
Original article here - https://msdn.microsoft.com/es-es/library/bb972202.aspx
More information here (translated from Spanish) - https://translate.google.com/translate?hl=en&sl=es&tl=en&u=https%3A%2F%2Fmsdn.microsoft.com%2Fes-es%2Flibrary%2Fbb972202.aspx