Skip to content

Commit 993fa6e

Browse files
committed
stateless-filter: minor fix
1 parent faea10a commit 993fa6e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fosdem2019/stateless-filter.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ struct filtrule {
4949
};
5050

5151
static inline int
52-
pkt_select(const char *buf, struct filtrule *rules,
53-
int num_rules)
52+
pkt_select(const char *buf, struct filtrule *rules, int num_rules)
5453
{
5554
struct ether_header *ethh;
5655
struct udphdr *udph;
@@ -72,7 +71,7 @@ pkt_select(const char *buf, struct filtrule *rules,
7271
== rule->ip_daddr &&
7372
(!rules->ip_proto || rule->ip_proto == iph->ip_p) &&
7473
(!rule->dport || rule->dport == udph->uh_dport)) {
75-
return 1;
74+
return 1; /* select */
7675
}
7776
}
7877

0 commit comments

Comments
 (0)