Skip to content

Commit 1068ce2

Browse files
committed
cgen: WIP
1 parent 4dea9c6 commit 1068ce2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bpfilter/cgen/program.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,11 @@ static int _bf_program_generate_rule(struct bf_program *program,
626626
EMIT_FIXUP_ELFSTUB(program, BF_ELFSTUB_UPDATE_COUNTERS);
627627
}
628628

629+
// TODO: the logic goes here
630+
if (rule->ratelimit) {
631+
// We probably should do something here, but the EMIT are scarry
632+
}
633+
629634
switch (rule->verdict) {
630635
case BF_VERDICT_ACCEPT:
631636
case BF_VERDICT_DROP:

0 commit comments

Comments
 (0)