Skip to content

Commit

Permalink
chore: solved contruct_tuple typo #1221
Browse files Browse the repository at this point in the history
Signed-off-by: Yash Patel <yp969803@gmail.com>
  • Loading branch information
yp969803 committed Feb 7, 2025
1 parent 74133b5 commit ae01ffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bpf/kmesh/probes/tcp_probe.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct {
__uint(max_entries, 256 * 1024 /* 256 KB */);
} map_of_tcp_probe SEC(".maps");

static inline void constuct_tuple(struct bpf_sock *sk, struct bpf_sock_tuple *tuple, __u8 direction)
static inline void construct_tuple(struct bpf_sock *sk, struct bpf_sock_tuple *tuple, __u8 direction)
{
if (direction == OUTBOUND) {
if (sk->family == AF_INET) {
Expand Down Expand Up @@ -146,7 +146,7 @@ tcp_report(struct bpf_sock *sk, struct bpf_tcp_sock *tcp_sock, struct sock_stora
return;
}

constuct_tuple(sk, &info->tuple, storage->direction);
construct_tuple(sk, &info->tuple, storage->direction);
info->state = state;
info->direction = storage->direction;
if (state == BPF_TCP_CLOSE) {
Expand Down

0 comments on commit ae01ffc

Please sign in to comment.