Skip to content

Commit 6b02cab

Browse files
committed
Add SO_SETFIB FreeBSD socket option constant.
Aims to set the route table. Closes #8742.
1 parent bad26b7 commit 6b02cab

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ PHP NEWS
7878
. Added ancillary data support for FreeBSD. (David Carlier)
7979
. Added ancillary data support for NetBSD. (David Carlier)
8080
. Added SO_BPF_EXTENSIONS socket option. (David Carlier)
81+
. Added SO_SETFIB socket option. (David Carlier)
8182

8283
- Sodium:
8384
. Added sodium_crypto_stream_xchacha20_xor_ic(). (Scott)

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ PHP 8.2 UPGRADE NOTES
252252
. SCM_CREDS2 (FreeBSD)
253253
. LOCAL_CREDS (NetBSD)
254254
. SO_BPF_EXTENSIONS
255+
. SO_SETFIB
255256

256257
========================================
257258
11. Changes to INI File Handling

ext/sockets/sockets.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,9 @@ static PHP_MINIT_FUNCTION(sockets)
543543
REGISTER_LONG_CONSTANT("SO_LISTENQLEN", SO_LISTENQLEN, CONST_CS | CONST_PERSISTENT);
544544
REGISTER_LONG_CONSTANT("SO_USER_COOKIE", SO_USER_COOKIE, CONST_CS | CONST_PERSISTENT);
545545
#endif
546+
#ifdef SO_SETFIB
547+
REGISTER_LONG_CONSTANT("SO_SETFIB", SO_SETFIB, CONST_CS | CONST_PERSISTENT);
548+
#endif
546549
#ifdef SO_ACCEPTFILTER
547550
REGISTER_LONG_CONSTANT("SO_ACCEPTFILTER", SO_ACCEPTFILTER, CONST_CS | CONST_PERSISTENT);
548551
#endif

0 commit comments

Comments
 (0)