LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2008, 02:06 AM   #1
Amit Aggarwal
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Post code of tcpdump in c/c++ ?


helo ,
can any one tell me the code of tcpdump in c or c++?

thanx in advance
 
Old 06-30-2008, 02:14 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Are you asking whether tcpdump is written in C or C++? If so, it's written in C. If not, please clarify your question, because it doesn't really make much sense.
 
Old 06-30-2008, 02:15 AM   #3
mongoosecage
Member
 
Registered: Jun 2008
Distribution: Slackware 13.0, Ubuntu 9.10, Windows XP Pro SP3
Posts: 100

Rep: Reputation: 15
Quote:
Originally Posted by Nylex View Post
Are you asking whether tcpdump is written in C or C++? If so, it's written in C. If not, please clarify your question, because it doesn't really make much sense.
think he wants the source code for tcpdump but hell i cant even make sense out of it
 
Old 06-30-2008, 02:18 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The source can be found here. You'll probably want to read through the documentation for libpcap as well.
 
1 members found this post helpful.
Old 05-03-2013, 11:04 AM   #5
UART
LQ Newbie
 
Registered: May 2013
Location: Detroit, MI
Distribution: TCL
Posts: 6

Rep: Reputation: Disabled
Thumbs up

Nylex? You've done the impossibleby providing JUST the answer while including suggestions too
Quote:
Nylex: You'll probably want to read through the documentation for libpcap as well.
REGARDLESS of the grammar and getting STRAIGHT to the point (time is money)!

-Kudos-


Here in U.S., we've proven this to be very difficult to do thus, I dedicate my very first post to you while appending my 2c as well:

Syntax Examples:
Code:
tcpdump -i eth0
Displays everything communicating via eth0 (yours may vary; Ex:eth1,wlan2,etc..) to and from while the '-i' represents "interface"; straight-forward code.

Here's my favorite:
Code:
tcpdump -i eth0|awk '{print $1,$3,$5}'
This will filter the output and only show the Time, Data_From and Data_To.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Using tcpdump ? paragkalra Linux - Networking 10 02-17-2008 09:24 PM
tcpdump nawuza Linux - Newbie 1 01-17-2007 12:40 AM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 02:37 AM
tcpdump Tihi Linux - Security 3 06-01-2005 06:54 AM
tcpdump iquadri1 Linux - Networking 1 09-29-2001 03:16 PM


All times are GMT -5. The time now is 07:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration