industrialNETworXnetx

| 12.11.2007 | 11:47 | 2 replies

Ethernet: RX_EDD_ETHERNET_FRAME_T tEth.usType

Registered a callback to receive frames using EDD_ETHERTYPE_IPv4. If I'm looking to tEth.usType of a received frame the result is always 0x0008. I would expect 0x0800. Is there an issue with the byte order?

Second question: Is there a constant to register a receive callback for all kind of frames?

Martin

code- small

code- small

Hilscher Gesellschaft für Systemautomation mbH

| 12.11.2007 | 16:52

Hi RedElephant,

the number in the field tEth.usType is in network byte order which is big-endian. The number given to the callback registration function is in little-endian coding.

There is no constant but a function called Drv_EddSetPromiscCb which provides that.

Greets,
code-small

| 12.11.2007 | 18:57

Maybe you should change something there. If the underlaying code takes out the type and provides it to the callback then it would be easier in the code to use the constant defined in app_edd.h.

Drv_EddSetPromiscCb OK.
Thanks
Martin

Login