]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: ioctl type SIOCOUTQNSD returns amount of data not sent
authorMario Schuknecht <m.schuknecht@dresearch.de>
Wed, 9 Mar 2011 22:08:09 +0000 (14:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2011 22:08:09 +0000 (14:08 -0800)
commit60597cb8c7f4cdbf2754a2f9bd0af311b004d349
treed7b4d7d64ed8a02c3cd10064eb9d8e177d2be5c3
parent843e8a1a622db11271e9a024e2e19a79c4045091
tcp: ioctl type SIOCOUTQNSD returns amount of data not sent

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@dresearch.de>
Signed-off-by: Steffen Sledz <sledz@dresearch.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sockios.h
net/ipv4/tcp.c