diff options
author | Jens Axboe <[email protected]> | 2022-04-28 18:45:06 -0600 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-04-29 18:55:27 -0700 |
commit | f94fd25cb0aaf77fd7453f31c5d394a1a68ecf60 (patch) | |
tree | 5a746a51c0bcfa087d4d0bc097c634e0e5c1b888 /scripts/gdb/linux/utils.py | |
parent | af2d861d4cd2a4da5137f795ee3509e6f944a25b (diff) |
tcp: pass back data left in socket after receive
This is currently done for CMSG_INQ, add an ability to do so via struct
msghdr as well and have CMSG_INQ use that too. If the caller sets
msghdr->msg_get_inq, then we'll pass back the hint in msghdr->msg_inq.
Rearrange struct msghdr a bit so we can add this member while shrinking
it at the same time. On a 64-bit build, it was 96 bytes before this
change and 88 bytes afterwards.
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions