diff options
author | Arseny Krasnov <arseny.krasnov@kaspersky.com> | 2021-06-11 14:10:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-11 23:32:46 +0300 |
commit | 9942c192b256bc11cc903f89f4057bc97434dee9 (patch) | |
tree | baa6aba80f9d5dc1ef2bb77c6d33d77d8fdda483 /scripts/insert-sys-cert.c | |
parent | 19c1b90e1979c3974cd6a3ec0cbb886a84278d84 (diff) | |
download | linux-9942c192b256bc11cc903f89f4057bc97434dee9.tar.xz |
af_vsock: implement SEQPACKET receive loop
Add receive loop for SEQPACKET. It looks like receive loop for
STREAM, but there are differences:
1) It doesn't call notify callbacks.
2) It doesn't care about 'SO_SNDLOWAT' and 'SO_RCVLOWAT' values, because
there is no sense for these values in SEQPACKET case.
3) It waits until whole record is received.
4) It processes and sets 'MSG_TRUNC' flag.
So to avoid extra conditions for two types of socket inside one loop, two
independent functions were created.
Signed-off-by: Arseny Krasnov <arseny.krasnov@kaspersky.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/insert-sys-cert.c')
0 files changed, 0 insertions, 0 deletions