• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
interfaces and ipv6 again...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: interfaces and ipv6 again...
      • From: Joshua Graessley <email@hidden>
  • Prev by Date: Re: Best way to implement FTP Upload
  • Next by Date: RE: Best way to implement FTP Upload
  • Previous by thread: Re: ping driving me nuts!
  • Next by thread: Re: interfaces and ipv6 again...
  • Index(es):
    • Date
    • Thread