Untitled

Run Settings
LanguageZig
Language Version
Run Command
const std = @import("std"); const print = std.debug.print; const Action = enum(u8) { Allow, Deny, Reject }; const Proto = enum(u8) { tcp, udp }; const Rule = extern struct { action: Action, proto: Proto, port: u32, }; // Dummy function that could interact with netfilter export fn apply_rule(rule: *const Rule) bool { print("[Z] Applying rule: action: {s}({d}), proto: {s}({d}), port: {d}\n", .{ @tagName(rule.action), rule.action, @tagName(rule.proto), rule.proto, rule.port, }); return true; }
Editor Settings
Theme
Key bindings
Full width
Lines