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

No longer works with recent commits to libimobiledevice #36

Open
datatags opened this issue Sep 5, 2023 · 0 comments
Open

No longer works with recent commits to libimobiledevice #36

datatags opened this issue Sep 5, 2023 · 0 comments

Comments

@datatags
Copy link

datatags commented Sep 5, 2023

Since this commit in libimobiledevice, netmuxd no longer seems to work. See this issue for details on what's happening.

If I understand correctly, it seems that byte 0, previously the length, is now part of the sa_family information. It seems like this small change to devices.rs resolves it for IPv4:

IpAddr::V4(ip_addr) => {
-   data[0] = 10;
-   data[1] = 0x02;
+   data[0] = 0x02;
+   data[1] = 0x00;
    data[2] = 0x00;
    data[3] = 0x00;

I assume a similar change is required for IPv6, but I can't test it at the moment, so hopefully this is helpful to someone who can.

carck added a commit to carck/netmuxd that referenced this issue Sep 12, 2024
carck pushed a commit to carck/netmuxd that referenced this issue Sep 13, 2024
This reverts commit 1803473.
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

No branches or pull requests

1 participant