Re: TIOCOUTQ implementation for sockets vs. tty

2021-03-10 Thread Henneberg - Systemdesign
Willy Tarreau writes: > Hi, > > On Wed, Mar 10, 2021 at 07:16:34PM +0100, Henneberg - Systemdesign wrote: >> Hi, >> >> I have a question regarding the implementation of ioctl TIOCOUTQ for >> various sockets compared to the tty implementation. >> >> For several sockets, e. g. AF_BLUETOOTH it i

Re: TIOCOUTQ implementation for sockets vs. tty

2021-03-10 Thread Willy Tarreau
Hi, On Wed, Mar 10, 2021 at 07:16:34PM +0100, Henneberg - Systemdesign wrote: > Hi, > > I have a question regarding the implementation of ioctl TIOCOUTQ for > various sockets compared to the tty implementation. > > For several sockets, e. g. AF_BLUETOOTH it is done like this > > af_bluetooth.c:

TIOCOUTQ implementation for sockets vs. tty

2021-03-10 Thread Henneberg - Systemdesign
Hi, I have a question regarding the implementation of ioctl TIOCOUTQ for various sockets compared to the tty implementation. For several sockets, e. g. AF_BLUETOOTH it is done like this af_bluetooth.c: case TIOCOUTQ: if (sk->sk_state == BT_LISTEN) return -EINVAL;