10 years ago.

Receiving messages with incorrect destination MAC address

Hi Community,

sorry for the double post of this question, but in the section on the Forum I posted, maybe nobody reads it, so I will try out my luck here.

I'm quite new to the embedded programming, thats why I seem to have trouble with the following.

I wanted to receive messages/packets on the Ethernet port which don't have a dest. MAC address that matches the mbed MAC address. I'm using the newest version of the EthernetInterface library provided by mbed.

I tried to get a raw socket to work, but somehow I failed at that point, and so I tried it with a UDPSocket. Is there something like a promiscuous mode for UDP (Ethernetport), so that it receives all messages despite the destination MAC address ? It seems like all packets that do not have the correct MAC address get discarded.

I tried a program with just the mbed-RTOS, mbed-src and mbed-NXP libraries, and there was this nice function:

Ethernet send (RAW?)

eth.write((const char*)buffer1,PKT_LEN);
eth.send();

For receiving

int size = eth.receive();
eth.read(buf, size);

I would like to use functions like these, but I need the lwip stack, and with the EthernetInterface library, I can't use these functions.

I am using two mbeds (LPC1768), one sending packets and one receiving.

I hope I stated my question clearly.

Thank you in advance

Be the first to answer this question.