yeah....u r right am using send and receive functions....i am using visual studio ..am not coding in linux.....i think i get all the individual fields of the packet ...i think i will be able to get only source ip...port etc etc..but i want the packet right from IP header....

in which structure i receive the details.....and can i send the same packet as such to another server