Message-ID: Date: Tue, 8 Mar 2022 15:23:17 +0100 MIME-Version: 1.0 Content-Language: en-US References: <20220224165557.22060-1-kprovost@...2661...> From: Antonio Quartulli In-Reply-To: <20220224165557.22060-1-kprovost@...2661...> Subject: Re: [Openvpn-devel] [PATCH DCO]: FreeBSD DCO support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: Kristof Provost , openvpn-devel Hi, On 24/02/2022 17:55, Kristof Provost via Openvpn-devel wrote: > I've had to add a lot of '|| defined(TARGET_FREEBSD)', and I think the > code could be a bit cleaner if we'd make these calls conditional only on > defined(ENABLE_DCO), and instead expect every DCO implementation to > provide them, if only as stubs. I've not done that here. Can you name what new internal APIs would you want to add? I am also in favor of less ifdefs and have APIs that can be defined as stub or not based on the platform. A comment for your kernel API: I have seen you created an API named "OVPN_SET_TIMEOUT", however I'd suggest to name it "OVPN_SET_PEER" (like on Linux and Windows), because the idea is that this call will be used to set any additional/optional per-peer param. For example, we have been recently working on mssfix, which we may want to set on a per-peer basis (more params may come later). The SET_PEER call will allow to set all these params (if specified). What do you think? Regards, -- Antonio Quartulli