Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-05-2006, 03:48 PM
|
#1
|
LQ Newbie
Registered: Aug 2006
Posts: 15
Rep:
|
capturing loopback with tcpdump
I want to capture packets going over loopback without retaining all of the duplicates. Is there anyway to filter this out with tcpdump?
Thanks for your help.
|
|
|
12-05-2006, 04:06 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
what do you mean by duplicates? if you mean things like restransmissions, or retries of udp conections, then it's not tcpdump's place to regard those packets as anything special, as they are "duplicated" at much higher osi layers than the ip / tcp level's of tcpdump
|
|
|
12-06-2006, 08:36 AM
|
#3
|
LQ Newbie
Registered: Aug 2006
Posts: 15
Original Poster
Rep:
|
sorry, I should've been more clear. On loopback, the packet is sent and received. Tcpdump captures both the outgoing and incoming packets. Is there any way to differentiate between the packets sent by lo and the packets received by lo?
Thanks.
|
|
|
12-06-2006, 11:22 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
to be honest i'm not seeing that at all. can you show an example output containing this replication? note that as it's a single interface, lo will be sending and recieving between itself. if i do a telnet to localhost i see
Code:
[root@kermit ~]# tcpdump -i lo
17:21:20.038428 IP localhost.localdomain.49645 > localhost.localdomain.telnet: S 1657860734:1657860734(0) win 32792 <mss 16396,sackOK,timestamp 120682619 0,nop,wscale 6>
17:21:20.038812 IP localhost.localdomain.telnet > localhost.localdomain.49645: R 0:0(0) ack 1657860735 win 0
which doesn't have any replications as fasr as a take your use of it to be.
Last edited by acid_kewpie; 12-06-2006 at 11:26 AM.
|
|
|
All times are GMT -5. The time now is 04:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|