public inbox for connman@lists.linux.dev
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: Jussi Laakkonen <jussi.laakkonen@jolla.com>, connman@lists.linux.dev
Subject: Re: [PATCH 17/45] vpn-util: Add wrappers for GResolv hostname lookup use
Date: Fri, 8 Aug 2025 10:39:12 -0500	[thread overview]
Message-ID: <aa8fc0b1-e386-4afb-9f2f-d9907f9864d3@gmail.com> (raw)
In-Reply-To: <5be890a9-66d0-4475-b2a2-b881859f9aa7@jolla.com>

Hi Jussi,

On 8/8/25 7:36 AM, Jussi Laakkonen wrote:
> Hi Denis,
> 
> On 8/4/25 17:39, Denis Kenzior wrote:
>> Hi Jussi,
>>
>> On 7/11/25 9:27 AM, Jussi Laakkonen wrote:
>>> To avoid linking GResolv with every VPN plugin that uses it, add wrappers
>>> for the required calls in VPN utils.
>>
>> This may need a bit more explanation?  You're still using GResolv types in 
>> these functions?  Why can't g_resolv_ be used instead?
> 
> I can amend the commit message on this. The issue is that VPN plugins can be 
> either builtin, external (or out of code tree plugins), so making this wrapper 
> is a bit more straightforward by linking vpnd only with gresolv and having the 
> plugins not to care about it?

 From a maintenance stand point this is not preferable.  Why would we maintain 
extra wrappers for a library that is in-tree and we control in the first place? 
The plugins should link against GResolv and any issues should be solved at the 
build system level.

Regards,
-Denis

  reply	other threads:[~2025-08-08 15:39 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-11 14:26 [PATCH 00/46] VPN association state, dual IP support and WG fixes Jussi Laakkonen
2025-07-11 14:26 ` [PATCH 01/45] agent: Cancel agent request on NoReply D-Bus error Jussi Laakkonen
2025-07-11 14:26 ` [PATCH 02/45] vpn-provider: Use association state for VPN agent input wait Jussi Laakkonen
2025-07-11 14:26 ` [PATCH 03/45] vpn: Add association state before connect state Jussi Laakkonen
2025-07-11 14:26 ` [PATCH 04/45] vpn-agent: Do connect state transition after input dialog check Jussi Laakkonen
2025-07-11 14:26 ` [PATCH 05/45] service: Explicit VPN connect timeout, ignore in VPN agent wait Jussi Laakkonen
2025-08-01 19:31   ` Denis Kenzior
2025-08-08 12:05     ` Jussi Laakkonen
2025-08-08 16:08       ` Denis Kenzior
2025-08-11 14:21         ` Jussi Laakkonen
2025-07-11 14:26 ` [PATCH 06/45] provider: Handle VPN configuration and association states Jussi Laakkonen
2025-08-01 19:34   ` Denis Kenzior
2025-08-08 12:12     ` Jussi Laakkonen
2025-07-11 14:26 ` [PATCH 07/45] vpn: Add support for association state, add state getter Jussi Laakkonen
2025-07-11 14:26 ` [PATCH 08/45] vpn: Check if connecting when setting state or disconnecting Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 09/45] vpn: Add VPN agent use callback for plugins Jussi Laakkonen
2025-08-01 19:39   ` Denis Kenzior
2025-08-08 12:28     ` Jussi Laakkonen
2025-08-08 15:57       ` Denis Kenzior
2025-08-13  9:22         ` Jussi Laakkonen
2025-08-13 11:20         ` Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 10/45] vpn-provider: Transition to CONNECT state with agentless VPNs Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 11/45] doc: Update VPN documentation for association state Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 12/45] wireguard: Add saving of provider properties Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 13/45] wireguard: Use positive errors for VPN provider connect_cb Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 14/45] vpn: Fix VPN_FLAG_NO_DAEMON use in error cases Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 15/45] wireguard: Handle disconnect, error and network errors better Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 16/45] gresolv: Add generic error for GResolv struct with getter Jussi Laakkonen
2025-08-04 14:37   ` Denis Kenzior
2025-08-08 12:34     ` Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 17/45] vpn-util: Add wrappers for GResolv hostname lookup use Jussi Laakkonen
2025-08-04 14:39   ` Denis Kenzior
2025-08-08 12:36     ` Jussi Laakkonen
2025-08-08 15:39       ` Denis Kenzior [this message]
2025-07-11 14:27 ` [PATCH 18/45] wireguard: Use GResolv for DNS reresolve to avoid blocking Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 19/45] vpn: Drop state changes from update_provider_state() Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 20/45] wireguard: Fix shutdown, ensure one exit and set no agent is used Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 21/45] vpn: Check if disconnect is implemented before calling in stop_vpn() Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 22/45] wireguard: Tokenize host for getaddrinfo() Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 23/45] util: Add address family set/get/reset helpers Jussi Laakkonen
2025-08-04 14:47   ` Denis Kenzior
2025-08-08 12:29     ` Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 24/45] vpn-provider: Add support for dual-IP VPNs Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 25/45] provider: " Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 26/45] vpn: " Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 27/45] wireguard: Support both IPv4 and IPv6 address Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 28/45] inet: Expose __connman_inet_is_any_addr() for plugins to use Jussi Laakkonen
2025-08-04 14:57   ` Denis Kenzior
2025-08-08 12:40     ` Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 29/45] wireguard: Set split routing based on AllowedIPs Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 30/45] Revert "vpn: Remove unused __vpn_provider_check_routes" Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 31/45] vpn-provider: Allow to add complete routes and to remove routes Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 32/45] wireguard: Add routes for other than any addresses Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 33/45] wireguard: Fix string list parsing and IP tunneling Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 34/45] wireguard: Treat initial connect failure as unreachable host Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 35/45] service: handle also EALREADY in service_connect() Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 36/45] vpn-provider: Make daemonless VPNs to connect when connmand is online Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 37/45] vpn: Implement getter for the flags set by the VPN Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 38/45] vpn-provider: Delay connect of daemonless VPNs until connmand is online Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 39/45] wireguard: Rework hostname resolve, split code and do not resolve IP Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 40/45] vpn-util: Add wrapper for adding a namerver for GResolv Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 41/45] service: Send the DNS servers of VPN's transport when VPN is ready Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 42/45] vpn-provider: Add support for set/get "TransportNameservers" Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 43/45] wireguard: Add option for using transport nameservers for DNS reresolve Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 44/45] wireguard: Fix FQDN by using the resolved IP as the gateway Jussi Laakkonen
2025-07-11 14:27 ` [PATCH 45/45] provider: Add the VPN nameserver routes when connected Jussi Laakkonen
2025-07-18 16:52 ` [PATCH 00/46] VPN association state, dual IP support and WG fixes Jussi Laakkonen
2025-07-28 14:54 ` Denis Kenzior
2025-08-04 15:10 ` patchwork-bot+connman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aa8fc0b1-e386-4afb-9f2f-d9907f9864d3@gmail.com \
    --to=denkenz@gmail.com \
    --cc=connman@lists.linux.dev \
    --cc=jussi.laakkonen@jolla.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox