Skip to content

Commit

Permalink
sockets enabling SO_MARK socket option which is relatively similar
Browse files Browse the repository at this point in the history
 to FreeBSD's SO_USER_COOKIE giving a socket an identifier for packet filter,
 giving a specific route table.
  • Loading branch information
devnexen authored and nikic committed Jul 16, 2021
1 parent b3e0888 commit 4c873df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/sockets/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ static PHP_MINIT_FUNCTION(sockets)
#endif
REGISTER_LONG_CONSTANT("SOL_SOCKET", SOL_SOCKET, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SOMAXCONN", SOMAXCONN, CONST_CS | CONST_PERSISTENT);
#ifdef SO_MARK
REGISTER_LONG_CONSTANT("SO_MARK", SO_MARK, CONST_CS | CONST_PERSISTENT);
#endif
#ifdef TCP_NODELAY
REGISTER_LONG_CONSTANT("TCP_NODELAY", TCP_NODELAY, CONST_CS | CONST_PERSISTENT);
#endif
Expand Down

0 comments on commit 4c873df

Please sign in to comment.