Commit Graph

97 Commits

Author SHA1 Message Date
Callan Bryant
cf93b219a1
correct IPAllocated() 2020-03-02 19:31:29 +00:00
Callan Bryant
e0f753d3d0
ChooseIP -> MustChooseIP 2020-03-02 19:29:08 +00:00
Callan Bryant
6700a47a75
fix IP allocation logic 2020-03-02 19:27:54 +00:00
Callan Bryant
11ed6be6d1
add validationof hostname + IP 2020-03-02 19:26:08 +00:00
Callan Bryant
af7484c84b
allocate IP to peer 2020-03-02 19:13:47 +00:00
Callan Bryant
faf0e59887
correct IP enumeration 2020-03-02 19:13:38 +00:00
Callan Bryant
2fcda8b90a
go fmt 2020-03-02 19:03:00 +00:00
Callan Bryant
12e8158725
avoid broadcast addr 2020-03-02 19:02:09 +00:00
Callan Bryant
d0c33994f8
check to see if IP is already allocated 2020-03-02 18:56:47 +00:00
Callan Bryant
45ec0ff5b8
POC IP range enumeration 2020-03-02 18:44:19 +00:00
Callan Bryant
57002288de
update README 2020-03-02 18:15:34 +00:00
Callan Bryant
1bd215600c
working incomplete adding of peers. Now sleep. 2020-03-02 03:08:28 +00:00
Callan Bryant
c419dfed48
fn/method to load/save conf 2020-03-02 02:54:43 +00:00
Callan Bryant
9c470d4534
fix parsing -- needed a pointer method 2020-03-02 02:49:44 +00:00
Callan Bryant
11a4ab4fc0
broken config file parsing 2020-03-02 02:49:03 +00:00
Callan Bryant
3cce9fa63e
start unmarshalling of config file 2020-03-02 02:35:32 +00:00
Callan Bryant
e62f47dee0
hostname -- (unique) annotation 2020-03-02 02:18:15 +00:00
Callan Bryant
bba8662ab9
add prompts for add cmd 2020-03-02 02:17:30 +00:00
Callan Bryant
27e0fcf327
add flags parsing (may remove for prompt/args) 2020-03-02 01:35:59 +00:00
Callan Bryant
0e06d0181f
update subcmds 2020-03-02 00:48:59 +00:00
Callan Bryant
cbaabd4579
start add cmd 2020-03-02 00:45:14 +00:00
Callan Bryant
55ee25d943
finish dsnet init -- write to sys file 2020-03-01 23:52:20 +00:00
Callan Bryant
2c3bb65612
error() check 2020-03-01 23:48:02 +00:00
Callan Bryant
3f52a08392
add report file to conf 2020-03-01 23:17:01 +00:00
Callan Bryant
a99449e960
go fmt 2020-03-01 23:08:10 +00:00
Callan Bryant
87317e374a
JSON marshall keys 2020-03-01 22:58:21 +00:00
Callan Bryant
0e118b3b6f
IPNet -> JSONIPnet 2020-03-01 22:29:11 +00:00
Callan Bryant
099324b7f8
embed IPNet for MarshalJSON 2020-03-01 22:03:31 +00:00
Callan Bryant
be849964e7
add empty peer list 2020-03-01 21:50:06 +00:00
Callan Bryant
5c60dc2a2d
start json encoding 2020-03-01 21:48:24 +00:00
Callan Bryant
2fe950d2c3
working subnet generation 2020-03-01 21:40:39 +00:00
Callan Bryant
d7b0d77cf2
start creation of dsnet config 2020-03-01 20:54:33 +00:00
Callan Bryant
fac130eea1
working help 2020-02-27 23:22:32 +00:00
Callan Bryant
7a2dc1098e
add report cmd to help 2020-02-27 23:14:04 +00:00
Callan Bryant
736c490ab5
move const to const file 2020-02-27 23:09:18 +00:00
Callan Bryant
32c5b1c037
add main help 2020-02-27 22:52:57 +00:00
Callan Bryant
109b1d35b3
make some consts default 2020-02-27 22:31:44 +00:00
Callan Bryant
e1b084b801
add domain + cidr validation 2020-02-27 22:21:20 +00:00
Callan Bryant
b583278e56
+network 2020-02-27 22:10:58 +00:00
Callan Bryant
ccba347caf
move readme to / 2020-02-27 21:56:56 +00:00
Callan Bryant
33a3252891
add const file 2020-02-26 20:40:12 +00:00
Callan Bryant
b600d147fe
+ main cmd switch 2020-02-20 20:02:56 +00:00
Callan Bryant
ee4bd1a47f
add validators from wgborg 2020-02-21 14:05:36 +00:00
Callan Bryant
da7ea0796a
initial config/actual types 2020-02-20 19:08:07 +00:00
Callan Bryant
33fbaa930b
define initial peer type 2020-02-10 19:58:13 +00:00
Callan Bryant
2331c4ad7b
add README 2020-02-09 21:02:23 +00:00
Callan Bryant
cc8309fab2
add cmd file and go module file 2020-02-09 20:56:51 +00:00