Commit Graph

52 Commits (master)

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
markqvist bb4b1917d5
Merge pull request #13 from CoelacanthusHex/fix-makefile
chore: refine Makefile with Makefile Conventions
2023-05-31 18:20:45 +02:00
Coelacanthus 54b4ae14f8
chore: refine Makefile with Makefile Conventions
Users can now do the following:
- use DESTDIR to specify another root dir
- use PREFIX to specify another install path except for /usr/local,
  e.g. /usr for the system package.
- load custom CFLAGS and LDFLAGS from environment variables
- use CC to specify the C compiler

These features are helpful to package it into Linux Distribution.

Signed-off-by: Coelacanthus <CoelacanthusHex@gmail.com>
2023-05-27 22:35:58 +08:00
Mark Qvist d9b3d2b6ae
Update README.md 2021-10-11 15:29:06 +02: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 b4a80a1e7a Cleaned install output 2020-09-28 11:11:27 +02:00
Mark Qvist 8944821ba8 Added mandb update to makefile 2020-09-28 11:07:10 +02:00
Mark Qvist ef700b3244
Merge pull request #5 from yalla/master
Created manualpage for tncattach
2020-09-28 10:17:17 +02:00
Alexander W. Janssen 015f8a73fb now makefile for real. 2020-09-12 14:34:03 +02:00
Alexander W. Janssen 5bdc5d5ccc created manualpage and adapted makefile for installing manpage 2020-09-12 14:31:42 +02:00
Mark Qvist de83bc9f21 Fixed accidental removal of line 2020-06-24 14:44:30 +02:00
Mark Qvist 671ea5dda0 Fixed deprecated bzero and bcopy calls 2020-06-24 14:28:50 +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
Mark Qvist eae91f349b Updated readme to include KISS over TCP 2020-06-24 14:13:40 +02:00
Mark Qvist b996f38689 Fixed typo 2020-06-24 14:02:02 +02:00
Mark Qvist d3ff2f207a Updated makefile 2020-06-24 14:01:35 +02:00
Mark Qvist 26f1e48b19 Renamed TCP files 2020-06-24 14:00:23 +02:00
Mark Qvist 5c8ddcd992 Merge branch 'valentintintin-tcp-kiss' 2020-06-24 12:31:17 +02:00
Mark Qvist dada2f3775 Makefile update 2020-06-24 12:28: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 30207d6691 Added ARP configuration for interface 2020-06-01 22:54:15 +02:00
Mark Qvist b438e5fb5a Implemented setting txqueuelen on created interface 2020-06-01 22:25:10 +02:00
Mark Qvist e7a831b41d Updated readme 2020-05-28 16:25:41 +02:00
Mark Qvist 5f251e1f28 Raspbian MTU setting description in readme 2020-05-28 14:45:07 +02:00
Mark Qvist 8a70eedfc5 Raspbian MTU setting 2020-05-28 14:15:29 +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 0159926312
Update README.md 2020-05-27 15:14:37 +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 e7f38ce4f6 Update gitignore 2020-05-27 10:31:29 +02:00
Mark Qvist 6b5f7a50d9 Implemented daemon 2020-05-27 10:30:02 +02:00
Mark Qvist 6bdf096f08 Updated readme 2020-05-27 09:52:24 +02:00
Mark Qvist fb9551ea25 Updated readme 2020-05-27 09:51:15 +02:00
Mark Qvist 7d28e18f31 Updated readme 2020-05-27 09:50:50 +02:00
Mark Qvist 6cb1c8cc63 Updated readme 2020-05-27 09:49:09 +02:00
Mark Qvist 9f7aaa5a60 Updated readme 2020-05-27 09:48:17 +02:00
Mark Qvist b8e007f155 Updated readme 2020-05-27 09:46:53 +02:00
Mark Qvist fc43b7f6ce Updated readme 2020-05-27 09:46:27 +02:00
Mark Qvist 06ae0e62d7 Updated readme 2020-05-27 09:42:27 +02:00
Mark Qvist 57f0336fda Compile fix on armhf 2020-05-26 21:37:21 +02:00
Mark Qvist 85ebb3d7b1 Basic implementation done 2020-05-26 17:59:56 +02:00
Mark Qvist 4353d21717 Updated readme 2020-05-25 17:10:29 +02:00
Mark Qvist f81f856a66 Serial driver and basic KISS interface implemented 2020-05-25 16:31:55 +02:00