You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, I encountered a problem when porting the Powerlink protocol stack.
i want to porting the Powerlink protocol stack by using W5500 module.
I need to directly operate on the lower-level MAC frames without using the TCP/IP protocol.
How can I do it?
in linux ,i can do it like this:
#define PROTO_PLK 0x88AB // powerlink protocol type
int sock = socket(PF_PACKET, SOCK_RAW, htons(PROTO_PLK));
ifr.ifr_flags = ifr.ifr_flags | IFF_PROMISC;
ioctl(edrvInstance_l.sock, SIOCSIFFLAGS, &ifr); // must set in Promiscuous mode
hello, I encountered a problem when porting the Powerlink protocol stack.
i want to porting the Powerlink protocol stack by using W5500 module.
I need to directly operate on the lower-level MAC frames without using the TCP/IP protocol.
How can I do it?
in linux ,i can do it like this:
#define PROTO_PLK 0x88AB // powerlink protocol type
int sock = socket(PF_PACKET, SOCK_RAW, htons(PROTO_PLK));
ifr.ifr_flags = ifr.ifr_flags | IFF_PROMISC;
ioctl(edrvInstance_l.sock, SIOCSIFFLAGS, &ifr); // must set in Promiscuous mode
but in W5500 api, how can i do it ?
int8_t socket (uint8_t sn, uint8_t protocol, uint16_t port, uint8_t flag);
i dont think this api may work,any ideas?
The text was updated successfully, but these errors were encountered: