Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ipv6Addr::new takes u16 segments #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

gdamjan
Copy link

@gdamjan gdamjan commented Dec 24, 2021

Ipv6Addr::new takes u16 segments as can be seen here: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.new

so the FF02::C address is Ipv6Addr::new(0xFF02, 0, 0, 0, 0, 0, 0, 0xC)

the current Ipv6Addr::new(0xFF, 0x02, 0, 0, 0, 0, 0, 0xC) is actually 00ff:0002::c and gives the following error:

Error: Io(Os { code: 101, kind: NetworkUnreachable, message: "Network is unreachable" })

ps.
also, payload needs to be CRLF delimited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant