interfaces and ipv6 again...
interfaces and ipv6 again...
- Subject: interfaces and ipv6 again...
- From: email@hidden (Sebastian Mecklenburg)
- Date: Fri, 25 Jul 2003 13:12:34 +0200
hello,
i still have problems with the interface for ipv6 connections. right
now, when i want to establish a connection over sockets with ipv6, i
have to specify the interface for the client _and_ the server socket
like
sockaddr_in6 addr;
int scope = ::if_nametoindex("en1");
addr.sin6_scope_id = scope;
//fill in the other fields of addr
//do connect() for clients or bind() for server sockets
here the server and client are directly connected over the ethernet
port. and the addresses i use are the default local-link ipv6 addresses
of the specified interfaces (the ones that are made up from the MAC
addresses). if i omit the interface, the connect() function for the
client returns a "no route to host" error. is there any way i can avoid
the specification of the interface?
regards,
sebastian mecklenburg
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.