Skip to content

Commit

Permalink
Conditionally define TCP_ULP, SOL_TCP and SOL_TLS
Browse files Browse the repository at this point in the history
Summary: `//xplat/fizz/experimental/ktls` doesn't compile with `arvr/mode/linux/anywhere/opt` without this as these aren't defined. Followed a common solution throughout our codebase where we conditionally set these, e.g. https://fburl.com/code/yftyxi7x

Reviewed By: markhog

Differential Revision: D59614368

fbshipit-source-id: 6afb60fc89c71e764c40e507bc29a3e59d7a0d96
  • Loading branch information
Shane Fitzpatrick authored and facebook-github-bot committed Jul 20, 2024
1 parent 4b08955 commit 3cdb00c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fizz/experimental/ktls/LinuxKTLS.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,16 @@
#define TLS_CIPHER_AES_GCM_256_REC_SEQ_SIZE 8
#endif

#ifndef TCP_ULP
#define TCP_ULP 31
#endif

#ifndef SOL_TCP
#define SOL_TCP 6
#endif

#ifndef SOL_TLS
#define SOL_TLS 282
#endif

#endif

0 comments on commit 3cdb00c

Please sign in to comment.