Tristan B. Velloza Kildaire
d5a92a315c
Re-named `TUNException` -> `AdapterException`
6 months ago
Tristan B. Velloza Kildaire
1357f7cb25
Added TODO list
6 months ago
Tristan B. Velloza Kildaire
87bfb3f1e6
Cleaned up uneeded imports and comments
6 months ago
Tristan B. Velloza Kildaire
2a8ab6f285
Removed last few extern declarations
6 months ago
Tristan B. Velloza Kildaire
76991d7082
Renamed `TUNAdapter` -> `Adapter`
6 months ago
Tristan B. Velloza Kildaire
a234f52908
Updated documentation for methods already implemented
6 months ago
Tristan B. Velloza Kildaire
bd21d7f7a3
Added some todo notes
6 months ago
Tristan B. Velloza Kildaire
2fbfef56f8
Switched to using ImportC
6 months ago
Tristan B. Velloza Kildaire
8ad431a76b
Added branding
1 year ago
Tristan B. Velloza Kildaire
e3bc5e422f
Updated types
2 years ago
Tristan B. Velloza Kildaire
b3631ab3e0
Updated to use stdint.h
2 years ago
Tristan B. Velloza Kildaire
8fab9b2217
Added some API notes
2 years ago
Tristan B. Velloza Kildaire
002fef91f9
Set adapter type
2 years ago
Tristan B. Velloza Kildaire
b936afb809
Changed license name to fit dub registry semantics
2 years ago
Tristan B. Velloza Kildaire
9fcb3b89e7
Use cc rather
2 years ago
Tristan B. Velloza Kildaire
82c5add9f0
Updated license
2 years ago
Tristan B. Velloza Kildaire
26b29f1b2f
Possibly fixed
2 years ago
Tristan B. Velloza Kildaire
db29f0eeff
Maybe fixed
2 years ago
Tristan B. Velloza Kildaire
fc33029514
Fixed building for real
2 years ago
Tristan B. Velloza Kildaire
3976c738ca
Possibly fixed build system
2 years ago
Tristan B. Velloza Kildaire
150f47bc27
Fixed build stuff
2 years ago
Tristan B. Velloza Kildaire
0bd07ea543
Fixed build system
2 years ago
Tristan B. Velloza Kildaire
a645ac0e12
Added WIP, removed old thing
2 years ago
Tristan B. Velloza Kildaire
0a2c37be13
Updated .gitignore
2 years ago
Tristan B. Velloza Kildaire
1a96b0dce5
Switched to library
2 years ago
Tristan B. Velloza Kildaire
13efc3bba7
Allocate scratchpad once and then dup copy a range
...
Improved efficiency and memory usage (till next GC)
2 years ago
Tristan B. Velloza Kildaire
00fd2bba7e
Throw exception on read failure (one of them atleast when status < 0)
...
Added close method to close tun interface
2 years ago
Tristan B. Velloza Kildaire
d98e10ba22
Fixed warning from gcc
2 years ago
Tristan B. Velloza Kildaire
c3f194df2a
Dequeue more frequently
2 years ago
Tristan B. Velloza Kildaire
03d441a37d
Added updated notes
2 years ago
Tristan B. Velloza Kildaire
1ec5004bec
Added note
2 years ago
Tristan B. Velloza Kildaire
d2ad780b54
Finally works
...
TUNTAP is message-oriented, now I did allocate a huge amount. I could have possibly tried using PEEK if it implements it but the thing is that then I would have to mangle that fucking horried ethernet frame format (not str8 forward like IP)
2 years ago
Tristan B. Kildaire
5c7686feb2
Create README.md
2 years ago
Tristan B. Velloza Kildaire
a7be414b01
Use ushort numbering for enum
2 years ago
Tristan B. Velloza Kildaire
d628449a4d
Added TODO
2 years ago
Tristan B. Velloza Kildaire
1eb37178c1
Added method to close tun device
...
Throw error when trying to operate on closed tun device
2 years ago
Tristan B. Velloza Kildaire
ed9f5c138e
Working tun interface
2 years ago
Tristan B. Velloza Kildaire
ca5634679c
Throw exception on failure to create tun device
2 years ago
Tristan B. Velloza Kildaire
269f81904c
Added status of ioctl as return value when failed, fd when succeeded
2 years ago
Tristan B. Velloza Kildaire
bac2d3474a
Changed function signature
2 years ago
Tristan B. Velloza Kildaire
8e3796f586
Added interface request options and ioctl'd it (confirmed working)
2 years ago
Tristan B. Velloza Kildaire
e7044563dd
Use `createTun`
2 years ago
Tristan B. Velloza Kildaire
71630e4af5
Return tun file descriptor
2 years ago
Tristan B. Velloza Kildaire
8fb598c9ad
USe new calling parameters
2 years ago
Tristan B. Velloza Kildaire
d40a715bd6
Lost my commits
...
Initial commit here (fucking Linux froze)
2 years ago