77 * loopback address link conflicts. Obtains the namespace cookie of the
88 * current container based on the bpf_get_netns_cookie auxiliary function.
99 */
10- #define MDA_LOOPBACK_ADDR 1
10+ #define MDA_LOOPBACK_ADDR 0
1111
1212/* supports NAT acceleration. That is, acceleration can also be performed
1313 * when iptables is used to forward traffic between service containers
1414 * and sidecar containers. The bpf_sk_original_addr auxiliary function is
1515 * used to obtain the original destination address.
1616 */
17- #define MDA_NAT_ACCEL 1
17+ #define MDA_NAT_ACCEL 0
1818
1919/* supports acceleration function filtering based on GID and UID.
2020 * That is, the GID or UID corresponding to the process to be accelerated
2121 * is configured in the configuration file. The bpf_get_sockops_uid_gid
2222 * auxiliary function is used to obtain the GID and UID of the current
2323 * process.
2424 */
25- #define MDA_GID_UID_FILTER 1
25+ #define MDA_GID_UID_FILTER 0
2626
2727/*
2828 * in kernel 6.x version, add the new iter type ITER_UBUF, and we need add code
2929 * for the corresponding scenarios.
3030 */
31- #define KERNEL_VERISON6 0
31+ #define KERNEL_VERISON6 1
3232
3333/*
3434 * Kmesh’s Layer 7 acceleration proxy capability relies on kernel enhancements.
3535 * It’s necessary to determine whether the current environment has an
3636 * enhanced kernel in order to enable Kmesh’s capabilities.
3737 */
38- #define ENHANCED_KERNEL 0
38+ #define ENHANCED_KERNEL 1
3939
4040/*
4141 * Different versions of libbpf can be installed in different environments,
5050/*
5151 * Determine whether the current kernel version supports the use of kfunc.
5252 */
53- #define KERNEL_KFUNC 0
53+ #define KERNEL_KFUNC 1
0 commit comments