Send peer discovery announcements over ipv6 multicast #3
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Depends on
#5 Peer discovery broadcast
ryzokuken/cosmoline
Reference: ryzokuken/cosmoline#3
Loading…
Reference in New Issue
No description provided.
Delete Branch "mirsal/cosmoline:ipv6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current SSB protocol is ipv4-only according to the SSB Protocol Guide, although I would like to extend it so it supports operation over IPv6.
Changes in the protocol would be minimal:
FF02::2
:
)Let's implement it so we have a working implementation before proposing those changes to the protocol maintainers
See: #7
9c0bc7c5c1
to0405ec3b16
WIP: IPv6to IPv6IPv6to Listen on IPv6 for peer discovery broadcastsListen on IPv6 for peer discovery broadcaststo WIP: IPv6 support0405ec3b16
to376ad62364
Extending the protocol is so exciting! 😄
ec43ca01c6
to893e75cbf5
893e75cbf5
toa49c5123ae
WIP: IPv6 supportto WIP: Send peer discovery announcements to the all-nodes link-local ipv6 multicast groupWIP: Send peer discovery announcements to the all-nodes link-local ipv6 multicast groupto WIP: Send peer discovery announcements over ipv6 multicast779ff7aeca
to593d0a11e7
WIP: Send peer discovery announcements over ipv6 multicastto Send peer discovery announcements over ipv6 multicastJust one comment!
@ -15,8 +15,11 @@ type Config = toml::map::Map<String, toml::Value>;
async fn peer_discovery_recv() {
let socket = UdpSocket::bind(":::8008").await.unwrap();
let all_nodes_addr = Ipv6Addr::new(0xFF02, 0, 0, 0, 0, 0, 0, 0x02);
Can this just be done inline in the line below instead?
@ -18,2 +18,4 @@
let all_nodes_addr = Ipv6Addr::new(0xFF02, 0, 0, 0, 0, 0, 0, 0x02);
let mut buf = [0u8; 1024];
socket.join_multicast_v6(&all_nodes_addr, 0).unwrap();
I think instead of adding
Ipv6Addr::new
here with all the args anduse
-ing that struct, you can just do"[FF02::2]".parse()
(dunno the exact string address but yeah) instead.593d0a11e7
to6d3deb9e58
6d3deb9e58
to870c27261c
there, fixed it :3