Commit Graph

18 Commits (c9104217968bebf95dd50e17e5596b3671efd608)

Author SHA1 Message Date
Tristan B. Velloza Kildaire c910421796
Add IPv6 support (command-line and tuntap) (#16)
* tncattach

- Added `set_ipv6`, `ipv6_addr` and `netmask_v6` globals
- Added `--ipv6` option
- If `n` is specified (i.e. `--noipv6`) then bail out if the user specified IPv6 addressing with `--ipv6 <arg>`
- Added `6` parsing, this is for when we have an `--ipv6` and want to set the address

* tncattach

- Removed global `netmask_v6` which is never used

* TAP

- Added initial code that I have been working on

* TAP

- Removed old (bad) code `trySixSet2(...)`

* TAP

- Clean up

* TAP

- Clean up

* TAP

- Added device type checl

* TAP

- Randomize the remaining octets of the link-local address

* TAP

- Seed random number generatro based off of current time

* TAP

- Removed TODO

* TAP_

- Cleaned up a little bit
- The `mtu` (on Luinux) must be `1280` of greater, else IPv6 won't work (and the address will not be allowed to be added)

* TAP

- More clean up

* TAP

- Moved mtu check for Ipv6 to be earlier

* TAP

- Added missing `cleanup()` calls

* TAP

- Aded newline

* TAP

- Now link-local and normal v6 can be requested independently

tncattach

- Added `--ll` mode to add link-local

* TAP

- More cleanup

* TAP

- Removed code to generate a link-local address

* tncattach

- Added error handling for mtu with IPv6 support

* TAP

- Removed uneeded imports

* TAP

- Cleaned up

* Cleaned up

* TAP

- Removed duplicate import

* TAP

- Removed error checking code from there

* TAP

- Cleaned up
- Remove dneed for `link_local_v6`

tncattach

- Removed `link_local_v6`

* TAP

- Close control socket when done

* tncattach

- Removed debug print

* TAP

- Cleaned up

* TAP

- Cleaned up

* TAP

- Cleaned up

* TAP

- Added check for bad open

* TAP

- Added another check

* tncattach

- Now parse IPv6 address and prefix in opt-args

TAP

- Removed parsing from here

* Fixed mtu stuff

* tncattach

- Typo fix

* Work

* tncattach

- WHen parsing the `prefixPart_s` (the prefix length), only continue if
the text is a number, if not then bail out with an error

* tncattach

- Only allow prefix length of between 0 to 128

* TAP

- Cleaned up

* TAP

- Cleaned up

* tncattach

- Cleaned up
2024-12-22 14:27:16 +01:00
Mark Qvist bb9ff10158 Version updated to 0.1.9 2020-09-28 11:39:28 +02:00
Mark Qvist 5129dda626 Argparse variable init. Fixes #4. 2020-09-28 11:18:02 +02:00
Mark Qvist 07eeed45f5 Cleaned up indentation 2020-06-24 14:22:42 +02:00
Mark Qvist c2beeee944 Cleaned up TCP options 2020-06-24 14:15:49 +02:00
Valentin Saugnier 41086b2e0c Add TCP Kiss 2020-06-16 21:55:25 +02:00
Mark Qvist 1c7b30b995 Updated version number 2020-06-01 23:01:25 +02:00
Mark Qvist a4f79f204b Fixed missing check when runnign without ID 2020-05-28 13:42:08 +02:00
Mark Qvist a4b433e2f7 Implemented part 97 compliant auto-identification 2020-05-28 13:27:06 +02:00
Mark Qvist bb045bc6d4 Increased logging in verbose mode 2020-05-28 12:34:46 +02:00
Mark Qvist 01a6fc1cd8 Increased logging in verbose mode 2020-05-28 12:20:07 +02:00
Mark Qvist 764746cc4c Fixed inadvertently setting interface flags when setting MTU 2020-05-28 11:32:46 +02:00
Mark Qvist f6e12426d0 Implemented automatic station ID 2020-05-27 14:30:05 +02:00
Mark Qvist 506d4659a1 Updated makefile 2020-05-27 10:39:35 +02:00
Mark Qvist 6b5f7a50d9 Implemented daemon 2020-05-27 10:30:02 +02:00
Mark Qvist 85ebb3d7b1 Basic implementation done 2020-05-26 17:59:56 +02:00
Mark Qvist f81f856a66 Serial driver and basic KISS interface implemented 2020-05-25 16:31:55 +02:00
Mark Qvist a91ab8e5ea Initial commit 2020-05-25 13:29:33 +02:00