From 1d322fe5102368f80fd4d00dcbbe3dca9e6306f8 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sat, 8 Apr 2023 15:21:43 +0100 Subject: [PATCH] std: add accept_filter struct to make use of SO_ACCEPTFILTER socket option --- lib/std/c/freebsd.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index 9f02872abe..16653ae47b 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -1105,6 +1105,11 @@ pub const DT = struct { pub const WHT = 14; }; +pub const accept_filter = extern struct { + af_name: [16]u8, + af_args: [240]u8, +}; + /// add event to kq (implies enable) pub const EV_ADD = 0x0001;