Raw Packet (sorry tripple weird Post)
Hello all, in a previous thread I was trying to figure out how to send raw packets thru one of my devices. Well since I want to use C# I found a C# version of WinPcap.
Since WinPcap is used by C++'rs I have a question using it.
I built an application to (well just read the tutorial and moved code around) resend IRC msgs when it reads one with its sniffer.
The application sees the packet Im sending to the IRC server with the msg MSG CHANNEL TEXT. I have it resent that EXACT packet to the server. The problem is eather the server drops it or doesnt get it.
So my theory is you just cant resend the same packet to the same location and there is something in the header I need to change to send a packet properly.
So, according to this website.
The header is 20 bytes long and there are diffrent parts to the packet.
The only thing I could find was this.
So maybe I can only send 1 packet with the same ID number.
Identification ( 16-bit number which together with the source address uniquely identifies this packet - used during reassembly of fragmented datagrams)
So if I can only send 1 packet with that ID number how to I generate a new ID number? Can I use a random number? Is there a sequence I follow?
Thankyou for your help.