Skip to content

ext/sockets: following-up on GH-16842, update FreeBSD TCP stack setting. #16923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ext/sockets/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,11 @@ PHP_FUNCTION(socket_get_option)
#endif

#ifdef TCP_FUNCTION_BLK
case TCP_FUNCTION_BLK: {
case TCP_FUNCTION_BLK:
#ifdef TCP_FUNCTION_ALIAS
case TCP_FUNCTION_ALIAS:
#endif
{

struct tcp_function_set tsf = {0};
optlen = sizeof(tsf);
Expand Down
31 changes: 31 additions & 0 deletions ext/sockets/sockets.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,37 @@
*/
const TCP_FUNCTION_BLK = UNKNOWN;
#endif
#ifdef TCP_FUNCTION_ALIAS
/**
* @var int
* @cvalue TCP_FUNCTION_ALIAS
*/
const TCP_FUNCTION_ALIAS = UNKNOWN;
#endif
#ifdef TCP_REUSPORT_LB_NUMA
/**
* @var int
* @cvalue TCP_REUSPORT_LB_NUMA
*/
const TCP_REUSPORT_LB_NUMA = UNKNOWN;
/**
* @var int
* @cvalue TCP_REUSPORT_LB_NUMA_NODOM
*/
const TCP_REUSPORT_LB_NUMA_NODOM = UNKNOWN;
/**
* @var int
* @cvalue TCP_REUSPORT_LB_NUMA_CURDOM
*/
const TCP_REUSPORT_LB_NUMA_CURDOM = UNKNOWN;
#endif
#ifdef TCP_BBR_ALGORITHM
/**
* @var int
* @cvalue TCP_BBR_ALGORITHM
*/
const TCP_BBR_ALGORITHM = UNKNOWN;
#endif
/**
* @var int
* @cvalue PHP_NORMAL_READ
Expand Down
17 changes: 16 additions & 1 deletion ext/sockets/sockets_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.