Development discussion of WireGuard
 help / color / mirror / Atom feed
From: hr567@hr567.me
To: wireguard@lists.zx2c4.com
Subject: example.c in wintun project does not work as expected
Date: Thu, 29 Dec 2022 13:59:42 +0000	[thread overview]
Message-ID: <000801d91b8d$cb88f730$629ae590$@hr567.me> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 417 bytes --]

I'm learning how to use wintun with its example.c file, however, the example
program doesn't run correctly currently. I found that the cause of the error
was calling WintunGetAdapterLUID before WintunStartSession. In this case,
WintunGetAdapterLUID set the InterfaceLuid to 0. I'm not sure if the problem
is caused by the wintun version or the OS version. I am using wintul.dll
version 0.14.1 and Windows 11 x86_64.


[-- Attachment #1.2: publickey - hr567@hr567.me - c8b7d072.asc --]
[-- Type: application/pgp-keys, Size: 1757 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 509 bytes --]

                 reply	other threads:[~2023-01-03  2:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='000801d91b8d$cb88f730$629ae590$@hr567.me' \
    --to=hr567@hr567.me \
    --cc=wireguard@lists.zx2c4.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;
as well as URLs for NNTP newsgroup(s).