Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286158 - net-analyzer/tcpdump expression filter doesn't work
Summary: net-analyzer/tcpdump expression filter doesn't work
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-23 23:29 UTC by Alexey Parshin
Modified: 2010-04-09 03:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Parshin 2009-09-23 23:29:27 UTC
The following command catches no packets:

tcpdump -l -i vlan10 -nn host 10.10.10.77

However, following command shows a lot of packets:

tcpdump -l -i vlan10 -nn | grep '10\.10\.10\.77'

Tested with tcpdump vv: 3.9.8-r1, 4.0.1_pre20090709 

squirrel ~ # emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E4600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 23 Sep 2009 21:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r2, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo ftp://mirror.pacific.net.au/linux/Gentoo http://gentoo.arcticnetwork.ca/source/ http://gentoo.osuosl.org/"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/my"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="7zip X X509 a52 aac accessibility acl acpi alsa amd amd64 aspell autoipd avahi bash-completion beagle berkdb branding bzip2 cairo cardbus cdr cdrkit cdrom cli consolekit cpudetection cpufreq cracklib crypt css cups curl dbus devhelp divx dns dri dts dv dvd dvdarchive dvdchapjump dvdnav dvdr dvi dxr2 embedded emboss encode esd fam fame fat ffmpeg filepicker firefox firefox3 flac foomaticdb freetds ftp fuse gdbm gif gimp git glitz gmail gnome gpm gstreamer gtk gzip h323 hal hpn iconv ieee1394 imap ipv6 irc isdnlog java javascript jpeg jpeg2k lame ldap libnotify lm_sensors lzo mad matroska mdnsresponder-compat mikmod mime mjpeg mmap mmx mmxext mng modules mp3 mp4 mp4live mpeg mpeg2 mpi mplayer mudflap multilib mysql nautilus ncurses nfs nls nntp nptl nptlonly nsplugin ntfs obex odbc ogg opengl openmp pam pango pcmcia pcre pdf perl pipechan png postgres ppds pppd python qt3 qt3-static qt3support qt4 quicktime rar readline realmedia reflection reiser4 reiserfs rpm rtc samba scanner sdl session sip slang smp sockets socks5 sourceview spell spl sql sqlite sse sse2 ssl ssse3 startup-notification stream subtitles subversion svg sysfs tcpd tga theora thesaurus threads threadsafe thunar tiff transcode trayicon truetype type1 unicode usb v4l v4l2 valgrind vnc vorbis wav wavpack webdav webkit wma wmf wmp wxwindows x264 xanim xcomposite xfs xine xinetd xml xmlreader xmlwriter xorg xosd xpm xprint xslt xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm asym dmix empty iec958 ioplug mmap_emul plug softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="peruser" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-02-12 14:39:53 UTC
Works fine here with a non-virtual interface. Maybe it helps if you attach a file with the relevant dev-util/strace output.
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-04-02 06:02:25 UTC
Please retest with tcpdump-4.1.0.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2010-04-09 03:55:39 UTC
If it still does not work for you, please, reopen bug. Thanks.