Skip to content

Commit

Permalink
Add TCP ack flag to the collectes TCP flags list
Browse files Browse the repository at this point in the history
Signed-off-by: msherif1234 <[email protected]>
  • Loading branch information
msherif1234 committed Mar 17, 2023
1 parent 420576f commit 2043e1c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bpf/flows.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ static inline void set_flags(struct tcphdr *th, u16 *flags) {
*flags |= FIN_FLAG;
} else if (th->syn) {
*flags |= SYN_FLAG;
} else if (th->ack) {
*flags |= ACK_FLAG;
} else if (th->rst) {
*flags |= RST_FLAG;
} else if (th->psh) {
Expand Down
Binary file modified pkg/ebpf/bpf_bpfeb.o
Binary file not shown.
Binary file modified pkg/ebpf/bpf_bpfel.o
Binary file not shown.

0 comments on commit 2043e1c

Please sign in to comment.