Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97286 - gnu-netcat only receives single UDP packet
Summary: gnu-netcat only receives single UDP packet
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-28 03:09 UTC by Cyrus Hall
Modified: 2006-02-04 03:29 UTC (History)
1 user (show)

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 Cyrus Hall 2005-06-28 03:09:50 UTC
When using netcat to receive UDP packets (-u), it typically only receives a
single packet before seemingly dropping all others.  This seems more previlent
if the payload is binary.  This bug has been reported in the GNU bug database at
http://sourceforge.net/tracker/?group_id=52204&atid=466046 but no one seems home.

Reproducible: Sometimes
Steps to Reproduce:
1. netcat -l -u -p 9999 | hexdump -C
2. netcat -u localhost 9999 < binary_file
3. notice that only a part of the file (typically one packet) has been received.

Actual Results:  
The receiver received only a single UDP packet.

Expected Results:  
It should of received many.

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r8 i686)
=================================================================
System uname: 2.6.11-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 17:23:04)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -mmmx -msse2 -fomit-frame-pointer
-fprefetch-loop-arrays "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -mmmx -msse2 -fomit-frame-pointer
-fprefetch-loop-arrays "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d acpi aim alsa apm arts avi bash-completion berkdb bitmap-fonts
bonobo bzlib cdr cjk crypt cups curl directfb divx4linux doc dvd dvdr dvdread
eds emacs emboss encode esd ethereal exif fam fftw flac flash foomaticdb fortran
ftp gb gd gdbm gif gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv
imagemagick imap imlib ipv6 java jpeg junit kde lcms lesstif libg++ libwww mad
mikmod milter mime ming mmx motif mozilla mp3 mpeg nas ncurses nls ogg oggvorbis
openal opengl oss pam pdflib perl plotutils png pnp posix python quicktime
readline ruby samba sasl sdl shared sndfile sockets spell sse ssl svga tcpd
tetex theora tiff truetype truetype-fonts trusted type1-fonts unicode usb videos
vorbis wmf wxwindows xml xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Daniel Webert 2005-08-25 15:18:01 UTC
i don't have that problem overhere w/ net-110-r6/r8 on x86
Comment 2 SpanKY gentoo-dev 2005-10-13 14:12:51 UTC
the package is 'gnu-netcat', not 'netcat' ;)

nc -> 'netcat'
netcat -> 'gnu-netcat'
Comment 3 Eldad Zack (RETIRED) gentoo-dev 2006-02-04 03:29:21 UTC
confirmed, this worked the first time, then worked up to a certain point, all with the same file...

Looks like upstream matter to me, unless someone can provide a fix.