Linux: errno: EADDRNOTAVAIL; ipv6-bind;Cannot assign requested address

explain a situation

#define EADDRNOTAVAIL 99 /* Cannot assign requested address */

There is a situation: when the IP6 address is in tentative, this error will be returned. The following is the flag of the address that will be checked when bind is called. If it is tentative, return: err = -EADDRNOTAVAIL;
Insert image description here

Definition of tentative

It is a temporary address that has not yet been assigned to the network card and is being verified for duplicates.
[RFC2462/4429]) - an address whose uniqueness on a link is being verified, prior to its assignment to an interface. A Tentative address is not considered assigned to an interface in the usual sense. An interface discards received packets ad

Guess you like

Origin blog.csdn.net/qq_36428903/article/details/133273613