Skip to content

Commit 28bd8ad

Browse files
authored
Merge pull request #1223 from yp969803/issue#1221
chore: solved contruct_tuple typo #1221
2 parents a9f279e + ae01ffc commit 28bd8ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpf/kmesh/probes/tcp_probe.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct {
5454
__uint(max_entries, 256 * 1024 /* 256 KB */);
5555
} map_of_tcp_probe SEC(".maps");
5656

57-
static inline void constuct_tuple(struct bpf_sock *sk, struct bpf_sock_tuple *tuple, __u8 direction)
57+
static inline void construct_tuple(struct bpf_sock *sk, struct bpf_sock_tuple *tuple, __u8 direction)
5858
{
5959
if (direction == OUTBOUND) {
6060
if (sk->family == AF_INET) {
@@ -146,7 +146,7 @@ tcp_report(struct bpf_sock *sk, struct bpf_tcp_sock *tcp_sock, struct sock_stora
146146
return;
147147
}
148148

149-
constuct_tuple(sk, &info->tuple, storage->direction);
149+
construct_tuple(sk, &info->tuple, storage->direction);
150150
info->state = state;
151151
info->direction = storage->direction;
152152
if (state == BPF_TCP_CLOSE) {

0 commit comments

Comments
 (0)