Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2013 09:09:27 GMT
From:      Dmitry Dvoinikov <dmitry@targeted.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/175645: tcpdump incorrectly decodes pflog'ged UDP packet as ATALK
Message-ID:  <201301280909.r0S99RVD002544@red.freebsd.org>
Resent-Message-ID: <201301280910.r0S9A0A0012196@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175645
>Category:       misc
>Synopsis:       tcpdump incorrectly decodes pflog'ged UDP packet as ATALK
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 28 09:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Dvoinikov
>Release:        8.3
>Organization:
www.infosysco.ru
>Environment:
FreeBSD foo 8.3-RELEASE-p5 FreeBSD 8.3-RELEASE-p5 #1: Wed Dec 12 23:29:24 YEKT 2012     admin@foo:/opt/obj/opt/src/sys/FOO  i386
>Description:
Some UDP packet, saved by pflog, is decoded incorrectly as ATALK.

tcpdump output:

# tcpdump -r packet.pcap 
reading from file packet.pcap, link-type PFLOG (OpenBSD pflog file)
11:22:11.296532 IP 115.61.0.254 > 143.12.228.91: at-#100 5

whereas the (presumably correct) wireshark output:

Frame 1: 110 bytes on wire (880 bits), 110 bytes captured (880 bits)
PF Log IPv4 pass on ifc by rule 0
Internet Protocol Version 4, Src: 172.30.0.11 (172.30.0.11), Dst: 193.120.212.22 (193.120.212.22)
User Datagram Protocol, Src Port: 55573 (55573), Dst Port: 16605 (16605)
Data (18 bytes)


>How-To-Repeat:
openssl base64 -d > packet.pcap << EOF
1MOyoQIABAAAAAAAAAAAAHQAAAB1AAAAAwsGUVSGBABuAAAAbgAAAD0CAABpZmMA
AAAAAAAAAAAAAAAAYW5jaG9yX25hbWUAAAAAAAAAABwAAAAC/////6CGAQAAAAAA
ggUAAAEAAABFAAAuAABAAEAR+QasHgALwXjUFtkVQN0AGrhGUxUCmI8Mcz3kAFv+
ZGyAi27Z
EOF

tcpdump -r packet.pcap
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301280909.r0S99RVD002544>