Greetings:
I am looking for a way to put a raw packet on the network wire. I have built the IP header myself, and included all needed data in a scalar. Now, all I need is to send it out on the cable. Is there a way to do this in WinNT?
I’ve opened the socket, and attempted a write as below:
I get an “unknown error”
my $temp=socket(SOCK,PF_INET,SOCK_RAW,0) or die('Can not open socket')
+;
printf "%d $@ $!\n",$temp;
my $temp=syswrite(SOCK,$packed); #send the data
printf "%d $@ $!\n",$temp;
close SOCK;
Thx for any help!