Skip to content

Commit

Permalink
issue: 1792164 Support systems w/o zero copy
Browse files Browse the repository at this point in the history
Define constants that related zero copy

Signed-off-by: Igor Ivanov <[email protected]>
  • Loading branch information
igor-ivanov committed Jun 15, 2020
1 parent cbb8c5a commit 3db3bd0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/vma/sock/sockinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,22 @@ enum {
#define SO_REUSEPORT 15
#endif

#ifndef SO_EE_ORIGIN_ZEROCOPY
#define SO_EE_ORIGIN_ZEROCOPY 5
#endif

#ifndef SO_ZEROCOPY
#define SO_ZEROCOPY 59
#endif

#ifndef SO_EE_CODE_ZEROCOPY_COPIED
#define SO_EE_CODE_ZEROCOPY_COPIED 1
#endif

#ifndef MSG_ZEROCOPY
#define MSG_ZEROCOPY 0x4000000
#endif

struct cmsg_state
{
struct msghdr *mhdr;
Expand Down

0 comments on commit 3db3bd0

Please sign in to comment.