Commit Graph

10 Commits

Author SHA1 Message Date
Sijie.Sun b0494687b5 simplify packet definition (#30) 2024-03-13 18:09:48 +08:00
Sijie.Sun 0053666dfb use uint32 as peer id (#29) 2024-03-13 00:15:22 +08:00
Sijie.Sun cb0df51319 fix ip & route cfg on windows (#28) 2024-03-09 00:24:16 +08:00
Sijie.Sun 278a4846f1 support ip broadcast (#26) 2024-03-06 23:09:15 +08:00
Sijie.Sun d8d1c64df7 Introduce foreigner network (#25)
* support network identity for instance

* introduce foreign network

foreign network allow a node serving as one public node. other nodes can
connect to this node to discover peers and exchange route info.
2024-03-06 20:59:17 +08:00
Sijie.Sun 7918031d8b add version to rip route, reduce bandwidth (#23)
reduce bandwidth usage on route propagation
2024-03-02 18:54:45 +08:00
Sijie.Sun 756d498b90 Stun fix (#18)
* make easytier-core a lib
* add stun command to easytier cli
* fix stun test for musl
2024-02-08 23:44:51 +08:00
Sijie.Sun 2c2e41be24 refactor route so we can add other router (#15) 2024-02-06 20:17:08 +08:00
Sijie.Sun 7f8935a9d5 introduce peer center (#13)
peer_center is used to collect peer info into one peer node.

the center node is selected with the following rules:

1. has smallest peer id
2. TODO: has allow_to_be_center peer feature

peer center is not guaranteed to be stable and can be changed when peer enter
or leave.  it's used to reduce the cost to exchange infos between peers.
2024-02-06 13:29:12 +08:00
sijie.sun 9779923b87 Initial Version 2024-01-27 15:12:30 +08:00