[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exim and IPv6 Help



>	you need to decide the "sizeof" part (3rd arg) dynamically according to
>	the address family of the listen_sockets[sk].  "ipv6_socket" is, I
>	guess, a constant.  If you use ipv6_socket to determine address family,
>	you will mistakenly use sizeof(struct sockaddr_in6) while you are
>	passing sockaddr_in to the 2nd argument.

	or, you can decide 3rd arg based on
	((struct sockaddr *)&sin)->sa_family.

itojun