1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

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
parent 2d098c88dc
commit e6401d65bd
3 changed files with 22 additions and 5 deletions

View file

@ -46,6 +46,7 @@ __BEGIN_DECLS
#define MSG_TRUNC 0x1
#define MSG_CTRUNC 0x2
#define MSG_PEEK 0x4
#define MSG_DONTWAIT 0x40
typedef uint16_t sa_family_t;