Appears sane is only IPV6 for network connections. Workarounds?
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Appears sane is only IPV6 for network connections. Workarounds?
I was recently at a buddy who has an old Brother MFC8840D on his WiFi LAN. I printed via CUPS but also wanted to try to scan -- I've heard it can be difficult on a network. It was.
In root or as user, I was unable to bind a socket. There's probably a workaround in /etc/hosts settings or some such, but this appears to be a situation where it won't drop back to IPV4 when it tries to bind the socket. Here is the relevant spot it fails as root in "strace scanimage -L"
(..) this appears to be a situation where it won't drop back to IPV4 when it tries to bind the socket.
That appears to be the case when getaddrinfo() gets a usable IPv6 result back. (As in why would it ignore a perfectly good response?) I guess you'll have to find out how to make IPv4 stack address resolution requests take precedence over IPv6 ones:
0) see if you have "options inet6" in/etc/resolv.conf,
1) see if you have "multi on" in /etc/host.conf,
2) see if you have a "/etc/gai.conf" file. If you have one comment everything out, make these the last two lines:
Code:
# For sites which prefer IPv4 connections:
precedence ::ffff:0:0/96 100
Then strace lookups again and check for difference in behaviour.
That appears to be the case when getaddrinfo() gets a usable IPv6 result back. (As in why would it ignore a perfectly good response?) I guess you'll have to find out how to make IPv4 stack address resolution requests take precedence over IPv6 ones:
0) see if you have "options inet6" in/etc/resolv.conf,
1) see if you have "multi on" in /etc/host.conf,
2) see if you have a "/etc/gai.conf" file. If you have one comment everything out, make these the last two lines:
Code:
# For sites which prefer IPv4 connections:
precedence ::ffff:0:0/96 100
Then strace lookups again and check for difference in behaviour.
Thank you very much. The issue was apparently a Brother requirement for a scanning backend when on a network (as opposed to USB scanning). Once I installed the Brother backend for network scanning, the IPV6 situation went away. However the notes you made are extremely helpful and logical for anyone looking to solve an IPV4/6 problem. I used to run into those before curl was updated, for example.
In this problem, I should have known that, just because the MFC-8840D is a printer has zero to do with its scanning firmware. In other words, CUPS has no bearing on the scanning and provides no hidden support in the process. Indeed, once the backend was installed, scanning was accomplished over the network entirely without the CUPS daemon even being enabled. So it's a simple matter of getting the Brother network scanning backend.
I'd like to somehow note this as "solved" but not sure how to edit the title here. Thanks again for the great feedback.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.