Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does Indy send and receive Raw Ethernet II frames?
#1
Hi There,

     I work for a company that uses Raw ethernet frames to control hardware. I'm trying to find a way to send the frames and also receive them. I've gotten a little lost trying to use npcap to do this and I'm wondering if Indy has the capability to do this. 

As a clarification: I just need it to send a frame of [send to MAC][sent from MAC][etc.......]

Has anyone done this here before?
Reply
#2
(12-01-2023, 05:45 PM)JFrancis Wrote:      I work for a company that uses Raw ethernet frames to control hardware. I'm trying to find a way to send the frames and also receive them. I've gotten a little lost trying to use npcap to do this and I'm wondering if Indy has the capability to do this. 

No. Indy does not operate at the Ethernet level, it cannot send and receive Ethernet frames. Even with RAW sockets (which Indy does support), it uses them at the IP level, not the Ethernet level.

If you don't want to (or can't) use a library like (n)pcap, you may be able to use your platform's underlying socket API with the AF_PACKET address family and sockaddr_ll address struct to accomplish this (there are some questions on StackOverflow about that, such as https://stackoverflow.com/questions/21411851/, https://stackoverflow.com/questions/70655602/, etc), but that is outside of Indy's scope.

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)