ipv4-mapped ipv4 connect() for UDP broken in test10

From: Felix von Leitner
Date: Wed Nov 26 2003 - 03:26:16 EST


My IPv6 port for djbdns' dnscache does not work with -test10.

The symptom is that all queries time out.

Some digging reveals that djbdns does this (with scope_id 0):

socket(PF_INET6,...)
bind socket to ::
connect() socket to IP of peer (in this case, 210.81.13.179)
send() dns query

at this point, the query is not sent over ppp0 as it should, but it is
sent to lo. Not only that, but the queries are _received_ by the same
djbdns (with servfail), although the destination IP is as said above
210.81.13.179 and none of my local IPs: 10.0.0.6, 127.0.0.1, or
217.88.123.45.

Any ideas? Please do not ship 2.6.0-final with a bug like this in it!

Felix
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/