I need to be notified when a Ethernet Frame is arriving on a UNIX system (on eth0 port). Is there a way to register my function somewhere? currently i'm working with the "sys/socket.h"-Library but i can't find a function to register myself.
Asked
Active
Viewed 52 times
0
-
1you could checkout libpcap for this – Hayt Nov 07 '16 at 14:54
-
1Some interesting read on the subject by the author of curl : https://daniel.haxx.se/docs/poll-vs-select.html – giant_teapot Nov 07 '16 at 14:56