So I am trying to make a program that parses certain udp packets on my network. To do this I use Sharppcap and C#. I have this filter expression and it works flawlessly in wireshark: udp and frame.protocols==eth:ethertype:ip:udp:data
.
However, when I try to implement this in my C# Application I get an Exception because the filter Expression is not BPF-Valid (I think).
Does anyone have an idea what the correct syntax would achieve the same thing in BPF?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…