Hi people,
I have a simple packet sniffer program in c (linux) that uses
fd=socket(AF_INET, SOCK_PACKET, htons(0x800));
and promiscuous mode.
I want to edit this program so it can transmit packets, as well as sniff
those packets that are transmitted ie. can I use the same socket to transmit, as well as sniff?
At the moment, the program doesn't need connect() to work.
Do I need to use connect() to transmit packets? If so, how do I know what valuesto choose from for struct sockaddr *serv_addr? What about int addrlen?
Thanks,
Dan.
--
________________________________________________________________
Daniel (Jie Shong) Ng 4th Year Undergraduate
http://www.ecr.mu.OZ.AU/~jsdn The University of Melbourne