lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 4 Mar 2011 11:49:37 +0000
From:	Alan Cox <alan@...rguk.ukuu.org.uk>
To:	Steffen Sledz <sledz@...search.de>
Cc:	linux-kernel@...r.kernel.org, linux-net@...r.kernel.org,
	Mario Schuknecht <m.schuknecht@...search.de>,
	"Fred N. van Kempen" <waltje@...lt.NL.Mugnet.ORG>,
	Mark Evans <evansmp@...ra.aston.ac.uk>,
	Corey Minyard <wf-rch!minyard@...ay.EU.net>,
	Florian La Roche <flla@...d.uni-sb.de>,
	Charles Hedrick <hedrick@...nzhai.rutgers.edu>,
	Linus Torvalds <torvalds@...helsinki.fi>,
	Alan Cox <gw4pts@...pts.ampr.org>,
	Matthew Dillon <dillon@...llo.west.oic.com>,
	Arnt Gulbrandsen <arnt@...brandsen.priv.no>,
	Jorge Cwik <jorge@...er.satlink.net>,
	Matthew Dillon <dillon@...ter.dragonflybsd.org>,
	Alan Cox <alc@...eBSD.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Charles Hedrick <hedrick@...gers.edu>,
	"" <Fred.van.Kempen@...rowalt.nl>
Subject: Re: [PATCH] tcp: ioctl type SIOCOUTQNSD returns amount of data not
 sent

On Wed, 23 Feb 2011 13:14:10 +0100
Steffen Sledz <sledz@...search.de> wrote:

> Am 05.10.2010 11:32, schrieb Mario Schuknecht:
> > In contrast to SIOCOUTQ which returns the amount of data sent
> > but not yet acknowledged plus data not yet sent this patch only
> > returns the data not sent.
> > 
> > For various methods of live streaming bitrate control it may
> > be helpful to know how much data are in the tcp outqueue are
> > not sent yet.
> > 
> > Signed-off-by: Mario Schuknecht <m.schuknecht@...search.de>
> > ---
> >  include/asm-generic/ioctls.h |    1 +
> >  include/linux/sockios.h      |    1 +
> >  net/ipv4/tcp.c               |    9 +++++++++
> >  3 files changed, 11 insertions(+), 0 deletions(-)
> > 
> > diff --git a/include/asm-generic/ioctls.h b/include/asm-generic/ioctls.h
> > index a321665..b87115b 100644
> > --- a/include/asm-generic/ioctls.h
> > +++ b/include/asm-generic/ioctls.h
> > @@ -72,6 +72,7 @@
> >  #define TCSETXF		0x5434
> >  #define TCSETXW		0x5435
> >  #define TIOCSIG		_IOW('T', 0x36, int)  /* pty: generate signal */
> > +#define TIOCOUTQNSD	0x5437

These are tty not socket ioctl codes. For various historical reasons some
of them got sort of emulated by the socket layer in Unix and thus in
Linux.

If you plan to add one to Linux then please post the accompanying *tty
layer* patches and reasoning, otherwise if it is socket only please stick
to the socket ioctl.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ