From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=new2025; t=1755361846; bh=zXaq5E/+nrDE5u5YhmoKm4/tCypRA+L4w0Ded2Q+L9U=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=H19A+HaHpyWCHdeqwgBBY/QOtyt8LBNRZCulhd/ccl5046v8NOa7U43TO2NNFzJjZ kFUfqK31TfkuT1HdOfl8emEVsv0xyRMumjJl6srSHNfTSSM3DycF9hxovc986ODI0w 2AdX+0w7YVDJG7r3CwXMz1SSmhpYt8DTjB7Fn5OIslOYFyVfu74oZ88+HbCkVu/t59 i0//oJDEwgWnWYPggDys2wmVXn643DFFIxEBGVepNOMio6oy2+k5xvU2CzRi8oN7Op c20or8eJLVj9OLLomBptnJCAEcptVoH4alREYpo9xxeBFJsGoijaydAEHhKmPAcuC3 7rJolldMIfAhQ== Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id CEFEB31280D8 for ; Sat, 16 Aug 2025 16:30:46 +0000 (UTC) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-55ce5268cb8so2734771e87.2 for ; Sat, 16 Aug 2025 09:30:46 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCU0JmZOg/6Hj6YqYdA5OC9HAuzJMngObEP1+LLXaMQi+24pA/EZAW4IPVwXWTUECl0tBM25@vger.gnuweeb.org X-Gm-Message-State: AOJu0Yz3lMiyHgng3lWw/NhH5EhzPfjNbU9DQGW6zyCg+xv/GZX35F/h HeMYnoSRLhcQ4WjI1svH5KOaMaRw1ks8DvY8ERF2DkiOY5dOtS01zBLdBDbYuKsMOEeed0+BZWY bYigKKDeVaNuOe1deY/f5kGy+J35PxkA= X-Google-Smtp-Source: AGHT+IEuY/ARGDXu2p4Ce30lxTtP+60nZf1rmd9/fiyh7SUHF/oojQTK9LajmESscaug2hSWtihHFssSTGgBAEqr+wk= X-Received: by 2002:a2e:a98a:0:b0:32f:1df5:aca1 with SMTP id 38308e7fff4ca-334099d3069mr16774751fa.22.1755361846173; Sat, 16 Aug 2025 09:30:46 -0700 (PDT) MIME-Version: 1.0 References: <20250814044658.252579-1-reyuki@gnuweeb.org> <20250814044658.252579-3-reyuki@gnuweeb.org> <20250816160303.GA144043-ammarfaizi2@gnuweeb.org> In-Reply-To: <20250816160303.GA144043-ammarfaizi2@gnuweeb.org> From: Ahmad Gani Date: Sat, 16 Aug 2025 23:30:09 +0700 X-Gmail-Original-Message-ID: X-Gm-Features: Ac12FXx8xh9GyExHRWlMo2Y3eYkOspdABCMj60WkUWan-fgCzAgqKDktayuWZjk Message-ID: Subject: Re: [PATCH gwproxy v5 2/2] dnsparser: Add dns parser code To: Ammar Faizi Cc: Alviro Iskandar Setiawan , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: On Sat, Aug 16, 2025 at 11:03=E2=80=AFPM Ammar Faizi wrote: > Now the question is: How do we integrate this? > > I see no Makefile changes. I guess it's still not covered by gwproxy > build system. I=E2=80=99ve managed to integrate it into gwproxy=E2=80=99s epoll event loo= p and successfully run a simple single-query test with cURL. However, the integration process isn't fully completed and still requires significant changes across `dns.c`, `gwproxy.c`, and `epoll.c`. So, It=E2=80=99s still a WIP. Here=E2=80=99s the gist of how I integrated the parser: - A non-blocking UDP socket file descriptor is created each time `gwp_dns_queue` is called. - A standard DNS query packet is sent over the network through that socket. - The UDP socket file descriptor is registered with epoll. - On epoll notification, the response is received. - The response is parsed and returned as a reply to the SOCKS5 `CONNECT` command. -- Ahmad Gani