Commit Graph

112 Commits

Author SHA1 Message Date
eichhornchen 5ada0920f0 for tests 2021-01-07 15:23:28 +01:00
eichhornchen 1702d258bf multicast 2021-01-07 15:06:23 +01:00
eichhornchen df3298a39c suppress the superfluous hazel.py file. 2021-01-07 11:20:49 +01:00
eichhornchen 25e502ab45 Merge branch 'commands' into 'master'
Commands

See merge request ynerant/squinnondation!8
2021-01-07 11:13:38 +01:00
Eichhornchen 15917bfb32 Added a fix to avoid becoming one's own neighbour. 2021-01-06 22:04:23 +01:00
Eichhornchen ab554bb3fe Cleaned the names + put the lock back (I assure you it's necessary) 2021-01-06 21:47:07 +01:00
ynerant 671c3ef978 Merge branch 'commands' into 'master'
Commands

See merge request ynerant/squinnondation!7
2021-01-06 17:04:07 +01:00
Yohann D'ANELLO be6abe2557
Linting 2021-01-06 15:50:29 +01:00
Yohann D'ANELLO 40a22b20c8
Fix markdown command 2021-01-06 15:48:02 +01:00
Yohann D'ANELLO fdc89bfe53
Remove debug code 2021-01-06 15:46:58 +01:00
Yohann D'ANELLO bd024c3d31
Manage suppr key, fix backspace 2021-01-06 15:45:52 +01:00
Yohann D'ANELLO 89bb6ddc3a
Manage commands 2021-01-05 23:59:35 +01:00
ynerant a92df73a55 Merge branch 'security' into 'master'
Security

See merge request ynerant/squinnondation!6
2021-01-05 22:40:54 +01:00
Yohann D'ANELLO acd9b157b9
Add docstring for the update table function 2021-01-05 22:36:09 +01:00
Yohann D'ANELLO 084f512d34
Check that packet length is good 2021-01-05 22:01:49 +01:00
Yohann D'ANELLO eb0098552a
Banned clients are not potential clients 2021-01-05 21:50:29 +01:00
Yohann D'ANELLO 1db72e71dc
Banned clients are not potential clients 2021-01-05 21:17:44 +01:00
Yohann D'ANELLO edb738bffb
Don't log banned users too much 2021-01-05 21:08:52 +01:00
Yohann D'ANELLO dc9f836932
When merging clients, merge also error count 2021-01-05 21:04:08 +01:00
Yohann D'ANELLO 5bb4748056
Warn users when they send poop messages and ban them if they are too many 2021-01-05 20:55:04 +01:00
Yohann D'ANELLO 0a4ebd0c92
An unknown client can only send HelloTLV and GoAwayTLV for security 2021-01-05 20:38:19 +01:00
Yohann D'ANELLO f062ee7b13
Use hazelnut sets instead of dictionaries to avoid duplicate hazels 2021-01-05 20:26:22 +01:00
Yohann D'ANELLO c7c8765fad
Fix the warnings when a hazel use a different id/nickname that was previously known 2021-01-05 20:21:13 +01:00
Yohann D'ANELLO 2d670a56a1
Merge clients that have the same id if it speaks on multiple addresses 2021-01-05 20:05:19 +01:00
Yohann D'ANELLO 56020390b2
activehazelnuts -> active_hazelnuts 2021-01-05 19:19:43 +01:00
Yohann D'ANELLO f85b088367
Don't need to use a lock when manipulating packets 2021-01-05 19:17:33 +01:00
Yohann D'ANELLO 915dc3ec24
Clients can have multiple addresses 2021-01-05 19:13:07 +01:00
Yohann D'ANELLO 5ffe0d21c3
A hazelut is either active or potential 2021-01-05 18:25:55 +01:00
Yohann D'ANELLO 95a2501e49
Update the full hazelnuts table when adding a new potential neighbour 2021-01-05 18:22:34 +01:00
Yohann D'ANELLO 311e1539f9
Store a single hazelnut table 2021-01-05 18:12:57 +01:00
Yohann D'ANELLO 18d1737914
Send a long hello as a response of a HelloTLV 2021-01-05 17:11:34 +01:00
Yohann D'ANELLO 5c9b63d9db
Restructurate active hazels 2021-01-05 17:05:03 +01:00
ynerant 32ff4cbb97 Merge branch 'Neighbour' into 'master'
Neighbour management

See merge request ynerant/squinnondation!5
2021-01-05 16:07:29 +01:00
Yohann D'ANELLO f85b52524a
Linting 2021-01-05 16:03:16 +01:00
eichhornchen 5422d12ed1 Added a latex Readme 2021-01-04 21:27:55 +01:00
eichhornchen 17548ff73c Added a test to ensure oneself can not become neighbour of oneself (associated to the same adress) + remove one call to pkt.validate_data() 2021-01-04 18:26:06 +01:00
eichhornchen 122932e289 Revert "Removing the error raising in validate_data"
This reverts commit bb62669722.
2021-01-04 11:02:58 +01:00
eichhornchen bb62669722 Removing the error raising in validate_data 2021-01-04 10:52:03 +01:00
Yohann D'ANELLO a985dac4b0
Ctrl+C properly stop the program 2021-01-01 19:55:30 +01:00
Yohann D'ANELLO 88ab6f5c76
More security in TLV analysis 2021-01-01 18:41:01 +01:00
Yohann D'ANELLO b70fbc75d1
Add debug option 2021-01-01 18:14:22 +01:00
Yohann D'ANELLO 9ef3be22e8
Sleep during threads to avoid loops that run infinitely 2021-01-01 18:07:41 +01:00
Yohann D'ANELLO ac249716f7
Linting 2021-01-01 17:56:48 +01:00
eichhornchen 7abaa7bcd4 Repaired a few bugs in inundation (and the bug notes in the last commit) 2020-12-29 15:06:27 +01:00
eichhornchen 04f6fb6002 Implemented the inundation, strange type error encountered when testing 2020-12-29 13:48:55 +01:00
eichhornchen c01fd697cd Added a marker to active neighbours to remember if they are symmetric. Fixed a marshal function broken by the last commit 2020-12-28 18:33:57 +01:00
eichhornchen 913f804f5e The address property of a hazel is now a string. The whole code has been changed accordingly. 2020-12-28 15:00:36 +01:00
eichhornchen c4e03ed427 Implemented the fourth phase of neighbour management (the type of addresses sometimes changes in the cide, this should be addressed, there also remains a lot of debugging printing) 2020-12-28 11:48:44 +01:00
eichhornchen b7a495eb11 Implemented the first three phases of neighbour management (warning: for testing purposes, the delays before any action have been reduced) 2020-12-27 21:31:34 +01:00
eichhornchen 806287f834 Added construct functions to all TLVs that did not have one. 2020-12-25 21:22:52 +01:00