File tree 2 files changed +12
-10
lines changed
2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ PHP NEWS
33
33
- Sockets:
34
34
. Added SO_ATTACH_REUSEPORT_CBPF socket option, to give tighter control
35
35
over socket binding for a cpu core. (David Carlier)
36
+ . Added SKF_AD_QUEUE for cbpf filters. (David Carlier)
36
37
37
38
- Reflection:
38
39
. Fix GH-9470 (ReflectionMethod constructor should not find private parent
Original file line number Diff line number Diff line change @@ -1978,16 +1978,17 @@ PHP_FUNCTION(socket_set_option)
1978
1978
static struct sock_fprog bpfprog ;
1979
1979
1980
1980
switch (k ) {
1981
- case SKF_AD_CPU :
1982
- cbpf [0 ].code = (BPF_LD |BPF_W |BPF_ABS );
1983
- cbpf [0 ].k = (uint32_t )(SKF_AD_OFF + k );
1984
- cbpf [1 ].code = (BPF_RET |BPF_A );
1985
- bpfprog .len = 2 ;
1986
- break ;
1987
- default :
1988
- php_error_docref (NULL , E_WARNING , "Unsupported CBPF filter" );
1989
- RETURN_FALSE ;
1990
- }
1981
+ case SKF_AD_CPU :
1982
+ case SKF_AD_QUEUE :
1983
+ cbpf [0 ].code = (BPF_LD |BPF_W |BPF_ABS );
1984
+ cbpf [0 ].k = (uint32_t )(SKF_AD_OFF + k );
1985
+ cbpf [1 ].code = (BPF_RET |BPF_A );
1986
+ bpfprog .len = 2 ;
1987
+ break ;
1988
+ default :
1989
+ php_error_docref (NULL , E_WARNING , "Unsupported CBPF filter" );
1990
+ RETURN_FALSE ;
1991
+ }
1991
1992
1992
1993
bpfprog .filter = cbpf ;
1993
1994
optlen = sizeof (bpfprog );
You can’t perform that action at this time.
0 commit comments