Skip to content

Commit abafc52

Browse files
committed
Correct a syntax error in types_demo.ks
Signed-off-by: Cong Wang <cwang@multikernel.io>
1 parent 435184c commit abafc52

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/types_demo.ks

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,7 @@ fn update_stats(info: PacketInfo) {
139139
return match (action) {
140140
FILTER_ACTION_ALLOW: XDP_PASS,
141141
FILTER_ACTION_BLOCK: XDP_DROP,
142-
FILTER_ACTION_LOG: {
143-
// Log packet and allow
144-
ctx->log_packet(*packet_info)
145-
XDP_PASS
146-
},
142+
FILTER_ACTION_LOG: XDP_PASS,
147143
FILTER_ACTION_REDIRECT: XDP_REDIRECT
148144
}
149145
} else {

0 commit comments

Comments
 (0)