std: add accept_filter struct to make use of SO_ACCEPTFILTER socket option

This commit is contained in:
David CARLIER 2023-04-08 15:21:43 +01:00 committed by Veikka Tuominen
parent 7b0e015eb4
commit 1d322fe510

View File

@ -1105,6 +1105,11 @@ pub const DT = struct {
pub const WHT = 14; pub const WHT = 14;
}; };
pub const accept_filter = extern struct {
af_name: [16]u8,
af_args: [240]u8,
};
/// add event to kq (implies enable) /// add event to kq (implies enable)
pub const EV_ADD = 0x0001; pub const EV_ADD = 0x0001;