P
P
Papayaved2018-06-21 12:16:38
Computer networks
Papayaved, 2018-06-21 12:16:38

How to allow Windows to receive unsupported Ethernet messages?

I need to make a GOOSE message monitor EtherType = 0x88B8 (messages do not belong to the IP protocol).
I send GOOSE messages from the microcontroller, Wireshark can receive them and parse them by fields. For reception, I tried to use the SharpPcap library (C# wrapper for winpcap). With this library, I can receive GOOSE Ethernet packets as an array of bytes starting from MAC addresses, but only if Wireshark is running simultaneously with my program (it is also based on the winpcap library). If Wireshark is not running, then I can use this library to receive broadcast UDP packets that I send from the microcontroller for test purposes, but GOOSE packets do not reach me.
Network equipment, GOOSE messages are passed, but Windows without Wireshark intervention is not.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-06-21
@Papayaved

You need to put the interface in promiscuous mode

P
Papayaved, 2018-06-21
@Papayaved

I was engaged in Copy-Past and did not understand the code that I installed. It was necessary to open the SharpPCap device in Promiscuous mode

winPcap.Open(SharpPcap.WinPcap.OpenFlags.Promiscuous | 
    SharpPcap.WinPcap.OpenFlags.NoCaptureLocal, readTimeoutMilliseconds);

My network card did not accept other people's MAC addresses

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question