Discussion:
EHOSTDOWN on unconnected UDP6
(too old to reply)
J. Hannken-Illjes
2018-11-09 15:24:51 UTC
Permalink
Running NSD I get sometimes "recvmmsg failed: Host is down" errors
for this socket: "udp6 *.53 *.*"

I never saw this behaviour on the udp4 socket.

Why do we set this "Host is down" error on unconnected udp6 sockets?

--
J. Hannken-Illjes - ***@eis.cs.tu-bs.de - TU Braunschweig (Germany)


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Michael van Elst
2018-11-10 01:07:01 UTC
Permalink
Post by J. Hannken-Illjes
Why do we set this "Host is down" error on unconnected udp6 sockets?
EHOSTDOWN is the result of a received "address unreachable" ICMPv6 packet,
there is no corresponding IPv4 message.
--
--
Michael van Elst
Internet: ***@serpens.de
"A potential Snark may lurk in every tree."

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
J. Hannken-Illjes
2018-11-10 10:01:37 UTC
Permalink
Post by Michael van Elst
Post by J. Hannken-Illjes
Why do we set this "Host is down" error on unconnected udp6 sockets?
EHOSTDOWN is the result of a received "address unreachable" ICMPv6 packet,
there is no corresponding IPv4 message.
Ok, but why do we deliver this error asynchronously to an
udp6 socket that is bound but not connected.

How should the server know which of the messages
it sent failed?

This behaviour looks quite useless ...

--
J. Hannken-Illjes - ***@eis.cs.tu-bs.de - TU Braunschweig
Michael van Elst
2018-11-10 12:12:51 UTC
Permalink
Post by J. Hannken-Illjes
Post by Michael van Elst
EHOSTDOWN is the result of a received "address unreachable" ICMPv6 packet,
there is no corresponding IPv4 message.
Ok, but why do we deliver this error asynchronously to an
udp6 socket that is bound but not connected.
How should the server know which of the messages
it sent failed?
If I read the code correctly, the socket destination address
is set in the PCB when you send a message, and is searched
later when a notification should be delivered to the socket.

So you get the error for the last destination.
--
--
Michael van Elst
Internet: ***@serpens.de
"A potential Snark may lurk in every tree."

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...