To summarize it, when udp socket makes a send system call it returns true, irrespective of the status of the receiving host/port.
...
1. Shouldn't send() be reporting 'Destination host unreachable'?
No, since UDP is connectionless. The packet is just sent, and the protocol doesn't provide that info. You could send an ICMP packet first to make sure the receiving side is reachable.
In reply to Re: udp send not reporting host unreachable errors
by shmem
in thread udp send not reporting host unreachable errors
by saurabh.hirani
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |