Commit b909e62a authored by Liu Jian's avatar Liu Jian Committed by Zhengchao Shao
Browse files

net: add local_skb parameter to identify local tcp connection

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8J90J



----------------------------------------------------

Add the local_skb parameter to struct sk_buff to identify the local
connection. Currently, this function is used only on
BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB and BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB
to help the sockops bpf program check whether the current connection is a
local connection. Updating the local_skb variable only when the ACK packet
is sent is sufficient for this function to work.

Signed-off-by: default avatarLiu Jian <liujian56@huawei.com>
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
parent 0247fb84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment