i trying write application read data mirrored tcp/ip connection.
device connects machine b via tcp/ip , sends data. sent data duplicated , sent machine c device a, same destination address did before (pointing b not c). machine c needs read data , stuff it.
my question how create socket this? know need have in promiscuous mode. need raw socket? best way data?
machine c network sniffer guess, on network consisting of 3 devices.
you want use libpcap grab raw packets. run man 3 pcap list of relevant functions.
Comments
Post a Comment