Loading
bpf: fix type incompatible warning
hulk inclusion category: bugfix bugzilla: 187826, https://gitee.com/openeuler/kernel/issues/I9K8D1 -------------------------------- In bpf_getorigdst_impl(), argument 1 of type 'void *' is not compatible with argument 2 of type 'struct sockaddr_in *' in call to function 'memcpy'. Cast type of argument 2 to 'void *' to fix the warning. Fixes: 877e893ac68e ("[Huawei] bpf: Add new bpf helper to get SO_ORIGINAL_DST/REPLY_SRC") Signed-off-by:Ziyang Xuan <william.xuanziyang@huawei.com> Signed-off-by:
Dong Chenchen <dongchenchen2@huawei.com>