* tcpdump broken wrt CsCov & CsVal parsing?
@ 2007-09-22 14:41 Arnaldo Carvalho de Melo
2007-09-22 20:03 ` Ian McDonald
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Arnaldo Carvalho de Melo @ 2007-09-22 14:41 UTC (permalink / raw)
To: dccp
Trying to rebuild a proper test setup, so far using just loopback for
simple tests I noticed this problem:
11:57:47.463084 IP localhost.40343 > localhost.5001: CCVal 0, CsCov 5, cksum 0xf52a (correct), dataack (ack\x115231163474841)
11:57:47.463095 IP localhost.5001 > localhost.40343: CCVal 0, CsCov 5, cksum 0x92f7 (correct), ack (ack\x115230668497611)
11:57:47.463219 IP localhost.40343 > localhost.5001: CCVal 0, CsCov 10, cksum 0xe8d8 (correct), dataack (ack\x115231163474842)
11:57:47.463231 IP localhost.5001 > localhost.40343: CCVal 0, CsCov 10, cksum 0xa7e9 (correct), ack (ack\x115230668497612)
11:57:47.463344 IP localhost.40343 > localhost.5001: CCVal 0, CsCov 15, cksum 0xda86 (correct), dataack (ack\x115231163474843)
11:57:47.463355 IP localhost.5001 > localhost.40343: CCVal 0, CsCov 15, cksum 0x166c (correct), ack (ack\x115230668497613)
11:57:47.463466 IP localhost.40343 > localhost.5001: CCVal 0, CsCov 4, cksum 0xcf34 (correct), dataack (ack\x115231163474844)
11:57:47.463477 IP localhost.5001 > localhost.40343: CCVal 0, CsCov 4, cksum 0x4f19 (correct), ack (ack\x115230668497614)
Who was the last person to touch the DCCP support code in tcpdump? Care
to take a look?
- Arnaldo
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: tcpdump broken wrt CsCov & CsVal parsing?
2007-09-22 14:41 tcpdump broken wrt CsCov & CsVal parsing? Arnaldo Carvalho de Melo
@ 2007-09-22 20:03 ` Ian McDonald
2007-09-25 8:08 ` Gerrit Renker
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Ian McDonald @ 2007-09-22 20:03 UTC (permalink / raw)
To: dccp
On 9/23/07, Arnaldo Carvalho de Melo <acme@ghostprotocols.net> wrote:
> Trying to rebuild a proper test setup, so far using just loopback for
> simple tests I noticed this problem:
>
> Who was the last person to touch the DCCP support code in tcpdump? Care
> to take a look?
>
> - Arnaldo
I'm pretty sure that would be me :-(
I'll take a look but it won't be very soon.
--
Web1: http://wand.net.nz/~iam4/
Web2: http://www.jandi.co.nz
Blog: http://iansblog.jandi.co.nz
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: tcpdump broken wrt CsCov & CsVal parsing?
2007-09-22 14:41 tcpdump broken wrt CsCov & CsVal parsing? Arnaldo Carvalho de Melo
2007-09-22 20:03 ` Ian McDonald
@ 2007-09-25 8:08 ` Gerrit Renker
2007-09-26 18:27 ` Arnaldo Carvalho de Melo
2007-09-27 8:08 ` Gerrit Renker
3 siblings, 0 replies; 5+ messages in thread
From: Gerrit Renker @ 2007-09-25 8:08 UTC (permalink / raw)
To: dccp
| On 9/23/07, Arnaldo Carvalho de Melo <acme@ghostprotocols.net> wrote:
| > Trying to rebuild a proper test setup, so far using just loopback for
| > simple tests I noticed this problem:
| >
| > Who was the last person to touch the DCCP support code in tcpdump? Care
| > to take a look?
| >
| > - Arnaldo
|
| I'm pretty sure that would be me :-(
|
| I'll take a look but it won't be very soon.
|
... and me too :) I know this problem - CsCov and CCVal were swapped in the
header file. As far as I recall the maintainer had checked an update in last
year.
You didn't say which version of tcpdump you were using, I checked locally:
* tcpdump 3.9.5 as Debian package with libpcap 0.9.5 has this swap-problem
* tcpdump 3.9.5 built from tcpdump source, with libpcap 0.9.4 works correct
Can you try tcpdump from source please and check if the problem persists?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tcpdump broken wrt CsCov & CsVal parsing?
2007-09-22 14:41 tcpdump broken wrt CsCov & CsVal parsing? Arnaldo Carvalho de Melo
2007-09-22 20:03 ` Ian McDonald
2007-09-25 8:08 ` Gerrit Renker
@ 2007-09-26 18:27 ` Arnaldo Carvalho de Melo
2007-09-27 8:08 ` Gerrit Renker
3 siblings, 0 replies; 5+ messages in thread
From: Arnaldo Carvalho de Melo @ 2007-09-26 18:27 UTC (permalink / raw)
To: dccp
Em Tue, Sep 25, 2007 at 09:08:29AM +0100, Gerrit Renker escreveu:
> | On 9/23/07, Arnaldo Carvalho de Melo <acme@ghostprotocols.net> wrote:
> | > Trying to rebuild a proper test setup, so far using just loopback for
> | > simple tests I noticed this problem:
> | >
> | > Who was the last person to touch the DCCP support code in tcpdump? Care
> | > to take a look?
> | >
> | > - Arnaldo
> |
> | I'm pretty sure that would be me :-(
> |
> | I'll take a look but it won't be very soon.
> |
> ... and me too :) I know this problem - CsCov and CCVal were swapped in the
> header file. As far as I recall the maintainer had checked an update in last
> year.
>
> You didn't say which version of tcpdump you were using, I checked locally:
> * tcpdump 3.9.5 as Debian package with libpcap 0.9.5 has this swap-problem
> * tcpdump 3.9.5 built from tcpdump source, with libpcap 0.9.4 works correct
>
> Can you try tcpdump from source please and check if the problem persists?
Excellent data point, I should know better and try with upstream before
complaining. Ah, and also provide the tcpdump version:
[root@tonchinha ~]# rpm -q tcpdump
tcpdump-3.9.7-3.fc8
I'll check upstream now.
- Arnaldo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tcpdump broken wrt CsCov & CsVal parsing?
2007-09-22 14:41 tcpdump broken wrt CsCov & CsVal parsing? Arnaldo Carvalho de Melo
` (2 preceding siblings ...)
2007-09-26 18:27 ` Arnaldo Carvalho de Melo
@ 2007-09-27 8:08 ` Gerrit Renker
3 siblings, 0 replies; 5+ messages in thread
From: Gerrit Renker @ 2007-09-27 8:08 UTC (permalink / raw)
To: dccp
| I checked locally:
| > * tcpdump 3.9.5 as Debian package with libpcap 0.9.5 has this swap-problem
| > * tcpdump 3.9.5 built from tcpdump source, with libpcap 0.9.4 works correct
| >
| > Can you try tcpdump from source please and check if the problem persists?
|
| Excellent data point, I should know better and try with upstream before
| complaining. Ah, and also provide the tcpdump version:
|
| [root@tonchinha ~]# rpm -q tcpdump
| tcpdump-3.9.7-3.fc8
Have you looked at the source rpm's? I found the old patch, if the following hunk
applies then quite likely they have forgotten to patch the header file, and the
problem could be solved then (CCval and Cscov were swapped):
--- a/dccp.h
+++ b/dccp.h
@@ -36,8 +36,8 @@ struct dccp_hdr {
} dccph_xtrs;
};
-#define DCCPH_CCVAL(dh) (((dh)->dccph_ccval_cscov) & 0x0F)
-#define DCCPH_CSCOV(dh) (((dh)->dccph_ccval_cscov >> 4) & 0x0F)
+#define DCCPH_CCVAL(dh) (((dh)->dccph_ccval_cscov >> 4) & 0xF)
+#define DCCPH_CSCOV(dh) (((dh)->dccph_ccval_cscov) & 0xF)
#define DCCPH_X(dh) ((dh)->dccph_xtrs.dccph_xtr & 1)
#define DCCPH_TYPE(dh) (((dh)->dccph_xtrs.dccph_xtr >> 1) & 0xF)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-09-27 8:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-22 14:41 tcpdump broken wrt CsCov & CsVal parsing? Arnaldo Carvalho de Melo
2007-09-22 20:03 ` Ian McDonald
2007-09-25 8:08 ` Gerrit Renker
2007-09-26 18:27 ` Arnaldo Carvalho de Melo
2007-09-27 8:08 ` Gerrit Renker
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.