LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-19-2007, 06:26 PM   #1
ilnli
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Slackware 10.0, SUSE 9.1, RH 7, 7.3, 8, 9, FC2
Posts: 413

Rep: Reputation: 32
libpcap question


Hi,

I've a very simple questions about libpcap. Is there any way that we can find that which packet is incoming and which is outgoing packet using libpcap library? is there any function available in this library for this?

Regards,
Imran
 
Old 07-19-2007, 07:21 PM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 31
Well, I have absolutely no experience in this area, but I did this:

Code:
man pcap
I found no hint that this library can distinguish between "incoming" and "outgoing" packets, whatever that means. You may wish to study the man page more carefully yourself.

Failing that, just look inside each packet. It has everything you need to know.

Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libpcap thealphajustin Linux - Newbie 2 09-22-2006 04:52 PM
problem with libpcap ARCIS_house Linux - Newbie 9 06-05-2006 12:41 AM
libpcap.so.0 dependencies Question 09-sparky Linux - Software 3 02-02-2006 05:01 AM
install libpcap question in debian lnx8 Linux - Software 2 09-27-2004 11:23 PM
libpcap oulevon Linux - General 1 09-25-2001 09:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration