Skip to content

Commit a261b7f

Browse files
bpf: conntrack: use tcp_is_syn()
Clean up a open-coded occurrence of this new helper. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
1 parent e8897d7 commit a261b7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bpf/lib/conntrack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static __always_inline enum ct_action ct_tcp_select_action(union tcp_flags flags
133133
if (unlikely(flags.value & (TCP_FLAG_RST | TCP_FLAG_FIN)))
134134
return ACTION_CLOSE;
135135

136-
if (unlikely((flags.value & TCP_FLAG_SYN) && !(flags.value & TCP_FLAG_ACK)))
136+
if (unlikely(tcp_is_syn(flags)))
137137
return ACTION_CREATE;
138138

139139
return ACTION_UNSPEC;

0 commit comments

Comments
 (0)