[ds6-devel] no more objections

Mauro Tortonesi mauro@deepspace6.net
Mon Dec 30 22:27:19 2002


chris,

	i was thinking to the double binding stuff we talked about
yesterday. i think the best behaviour is:

- always reorder the res struct to have ipv6 sockaddrs first
- inside the for loop:
  1) check that getaddrinfo does not return ipv4-mapped addresses
  2) skip if family != PF_INET and family != PF_INET6
  3) use IPV6_V6ONLY if the system supports it
  4) warn if cannot bind to ptr->ai_addr

we can't do much more than this without complicating too much the design
of nc6 (e.g. including checks for double binding and/or to discover if a
particular addressed is already bound to another process).

so, i have no more objections to remove the functions is_ipv6_enabled and
is_double_binding_sane. i will do this tomorrow, if you agree.

-- 
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi			mauro@deepspace6.net
				mauro@ferrara.linux.it
Deep Space 6 - IPv6 on Linux	http://www.deepspace6.net
Ferrara Linux Users Group	http://www.ferrara.linux.it


More information about the ds6-devel mailing list