LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Richard Sharpe <sharpe@ns.aus.com>
  To  : rakesh <rakesh_ughreja@hotmail.com>
<linuxsa@linuxsa.org.au> Date: Mon, 29 Jan 2001 22:51:04 +1000

Re: i want some help in the packet capture library ..

At 05:48 PM 1/29/01 +0530, rakesh wrote:
>Hello ,
>
>I am receving the data from the ethernet card by usring the pcap function
>called pcap_loop ..
>
>now i don't know the format of the packet so i can not extract the
>informaion contained in it (like source IP, Destination IP etc ...) so can
>any one help me in this regards ..

Ummm, what makes you think that people on this list can tell you those things?

Have you checked out RFC 791, the one that specifies IP?

If you want to pull packets apart, you are expected to read up on it
yourself and not ask others. Sheesh, that's the only way you can become a
self-respecting guru.

BTW, you might want to look at Ethereal. It will show you the offsets, and
it may already do exactly what you want. See my sig for location.

>/rakesh
>
>-- 
>LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
>To unsubscribe from the LinuxSA list:
>  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>
>

Regards
-------
Richard Sharpe, sharpe@ns.aus.com
Samba (Team member, www.samba.org), Ethereal (Team member, www.ethereal.com)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba


-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page