Kernel: Add MSG_PEEK support for the IPv4Socket

This commit will add MSG_PEEK support, which allows a package to be
seen without taking it from the buffer, so that a subsequent recv()
without the MSG_PEEK flag can pick it up.
This commit is contained in:
Justin 2021-04-28 23:22:55 +02:00 committed by Andreas Kling
commit e6401d65bd
Notes: sideshowbarker 2024-07-18 18:57:14 +09:00
3 changed files with 22 additions and 5 deletions

View file

@ -496,6 +496,7 @@ struct pollfd {
#define MSG_TRUNC 0x1
#define MSG_CTRUNC 0x2
#define MSG_PEEK 0x4
#define MSG_DONTWAIT 0x40
#define SOL_SOCKET 1