hello all I am looking for a sample C code for packet interceptor....

Any help is appreciated

Thank you

you can use pcap library to write a one.
http://en.wikipedia.org/wiki/Pcap
two semesters ago I had done a project related to this, under network programming.

This may be those example samples that you looking for.
http://www.tcpdump.org/pcap.htm

not sure precisely. Just I don't think I get your question precisely.anyway
see around it may be useful or ignore if offtopic.

my requirement is to receive the packet as such and parse the packet and reframe and then forward to another server....

time being i am in need of just receiving the packet.....yeah i did go through it but couldnt really interpret it...if u have a sample snippet do mention...i will have a glance

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.