Commit Graph

18 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire d98e10ba22 Fixed warning from gcc 2021-07-21 19:07:17 +02:00
Tristan B. Velloza Kildaire c3f194df2a Dequeue more frequently 2021-07-21 19:07:10 +02:00
Tristan B. Velloza Kildaire 03d441a37d Added updated notes 2021-07-21 19:06:57 +02:00
Tristan B. Velloza Kildaire 1ec5004bec Added note 2021-07-21 18:51:10 +02:00
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)
2021-07-21 18:50:46 +02:00
Tristan B. Kildaire 5c7686feb2
Create README.md 2021-07-18 23:25:59 +02:00
Tristan B. Velloza Kildaire a7be414b01 Use ushort numbering for enum 2021-07-18 23:24:06 +02:00
Tristan B. Velloza Kildaire d628449a4d Added TODO 2021-07-18 23:23:56 +02:00
Tristan B. Velloza Kildaire 1eb37178c1 Added method to close tun device
Throw error when trying to operate on closed tun device
2021-07-18 23:10:11 +02:00
Tristan B. Velloza Kildaire ed9f5c138e Working tun interface 2021-07-18 19:45:17 +02:00
Tristan B. Velloza Kildaire ca5634679c Throw exception on failure to create tun device 2021-07-18 19:26:15 +02:00
Tristan B. Velloza Kildaire 269f81904c Added status of ioctl as return value when failed, fd when succeeded 2021-07-18 19:26:08 +02:00
Tristan B. Velloza Kildaire bac2d3474a Changed function signature 2021-07-18 19:23:16 +02:00
Tristan B. Velloza Kildaire 8e3796f586 Added interface request options and ioctl'd it (confirmed working) 2021-07-18 19:23:02 +02:00
Tristan B. Velloza Kildaire e7044563dd Use `createTun` 2021-07-18 18:54:34 +02:00
Tristan B. Velloza Kildaire 71630e4af5 Return tun file descriptor 2021-07-18 18:54:32 +02:00
Tristan B. Velloza Kildaire 8fb598c9ad USe new calling parameters 2021-07-18 18:53:32 +02:00
Tristan B. Velloza Kildaire d40a715bd6 Lost my commits
Initial commit here (fucking Linux froze)
2021-07-18 18:46:08 +02:00