问题
I use SharpPcap library for realise GOOSE protocol listener (EtherType = 0x88B8). It works well, but only if I run Wireshark in parallel, otherwise my program does not catch GOOSE packets.
SharpPcap examples also don't capture GOOSE packets while Wireshark is not running. But SharpPcap library captures my broadcast UDP packets.
回答1:
I had to open my SharpPCap device in promiscuous mode:
winPcap.Open(SharpPcap.WinPcap.OpenFlags.Promiscuous |
SharpPcap.WinPcap.OpenFlags.NoCaptureLocal, readTimeoutMilliseconds);
My ethernet card did not accept other MAC addresses
来源:https://stackoverflow.com/questions/50849828/how-i-can-grant-permission-for-pcap-library-in-windows-10-from-c