aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-03-27 15:17:54 +0100
committerSimon Rozman <simon@rozman.si>2019-03-27 15:18:37 +0100
commit7c6591b4f69a8b6a6f503c1ab0cd87f353a54189 (patch)
tree47f343f26ec06dd50a6c8a363e4d692433758ce2 /README.md
parentSimplify adapter context extraction from device extension (diff)
downloadwintun-7c6591b4f69a8b6a6f503c1ab0cd87f353a54189.tar.xz
wintun-7c6591b4f69a8b6a6f503c1ab0cd87f353a54189.zip
Update documentation
Device name actually uses LUID index only. Not an entire LUID. IfType in LUID is always 53 (IF_TYPE_PROP_VIRTUAL). Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index df77951..6dad8f9 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ If you already have `wintun.vcxproj.user` file, just add the `<PropertyGroup>` s
## Usage
-After loading the driver and creating a network interface the typical way using [SetupAPI](https://docs.microsoft.com/en-us/windows-hardware/drivers/install/setupapi), open `\\.\Device\WINTUN%d` as Local System, where `%d` is the [LUID](https://docs.microsoft.com/en-us/windows/desktop/api/ifdef/ns-ifdef-_net_luid_lh) of the network device. You may then [`ReadFile`](https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-readfile) and [`WriteFile`](https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-writefile) bundles of packets of the following format:
+After loading the driver and creating a network interface the typical way using [SetupAPI](https://docs.microsoft.com/en-us/windows-hardware/drivers/install/setupapi), open `\\.\Device\WINTUN%d` as Local System, where `%d` is the [LUID](https://docs.microsoft.com/en-us/windows/desktop/api/ifdef/ns-ifdef-_net_luid_lh) index of the network device. You may then [`ReadFile`](https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-readfile) and [`WriteFile`](https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-writefile) bundles of packets of the following format:
```
+------------------------------+