<div dir="ltr"><div>Hi All,<br><br>Great day!<br><br>I have one network interface, connected with a client:<br><br>[client]------> [(eth0)::Me]<br><br>Whenever I want to read all traffic I received on my (eth0) interface, I'm using tcpdump.</div><div># tcpdump -i eth0 -w file.pcap<br><br>And only after that, I can pass the pcap file to Erlang as an Argument, and I can process/modify it:<br><a href="https://github.com/hokiespurs/velodyne-copter/wiki/PCAP-format" target="_blank">https://github.com/hokiespurs/velodyne-copter/wiki/PCAP-format</a><br><br>It's working, but as you can see, it's not real time :-/<br></div><div><br></div><div>gen_tcp/gen_udp are not working because I would only capture all traffic matching ip address and udp port and for me only. But I want all traffic in my eth0 (traffic can be for other destination, not Me).</div><div><br></div><div><div>I have checked</div><div><a href="https://github.com/msantos/procket" target="_blank">https://github.com/msantos/procket</a></div><div><a href="https://github.com/msantos/pkt" target="_blank">https://github.com/msantos/pkt</a></div><div><a href="https://erlang.org/doc/man/socket.html" target="_blank">https://erlang.org/doc/man/socket.html</a></div><div><br></div><div>they are great jobs, but seem to be encoding/decoding and need to specify protocol for socket:bind<br></div><div><br></div><div></div></div><div>Can anyone advice please?<br></div><div><br></div><div>Thanks,  <br></div></div>