Skip to content

Commit

Permalink
Add SO_SETFIB FreeBSD socket option constant.
Browse files Browse the repository at this point in the history
Aims to set the route table.
Closes #8742.
  • Loading branch information
devnexen committed Jun 11, 2022
1 parent bad26b7 commit 6b02cab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ PHP NEWS
. Added ancillary data support for FreeBSD. (David Carlier)
. Added ancillary data support for NetBSD. (David Carlier)
. Added SO_BPF_EXTENSIONS socket option. (David Carlier)
. Added SO_SETFIB socket option. (David Carlier)

- Sodium:
. Added sodium_crypto_stream_xchacha20_xor_ic(). (Scott)
Expand Down
1 change: 1 addition & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ PHP 8.2 UPGRADE NOTES
. SCM_CREDS2 (FreeBSD)
. LOCAL_CREDS (NetBSD)
. SO_BPF_EXTENSIONS
. SO_SETFIB

========================================
11. Changes to INI File Handling
Expand Down
3 changes: 3 additions & 0 deletions ext/sockets/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ static PHP_MINIT_FUNCTION(sockets)
REGISTER_LONG_CONSTANT("SO_LISTENQLEN", SO_LISTENQLEN, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SO_USER_COOKIE", SO_USER_COOKIE, CONST_CS | CONST_PERSISTENT);
#endif
#ifdef SO_SETFIB
REGISTER_LONG_CONSTANT("SO_SETFIB", SO_SETFIB, CONST_CS | CONST_PERSISTENT);
#endif
#ifdef SO_ACCEPTFILTER
REGISTER_LONG_CONSTANT("SO_ACCEPTFILTER", SO_ACCEPTFILTER, CONST_CS | CONST_PERSISTENT);
#endif
Expand Down

0 comments on commit 6b02cab

Please sign in to comment.