[6bone] doubt about protocol independent Ping.

Jun-ichiro itojun Hagino itojun@itojun.org
Mon, 15 Dec 2003 16:55:43 +0900 (JST)


> | 	Stevens' book (TCP/IP network programming) has very old description of
> | 	protocol independent programming, so do not refer it.  rather, please
> | 	refer the following:
> | 	http://www.kame.net/newsletter/19980604/
> | 	http://www.usenix.org/publications/library/proceedings/usenix2000/freenix/metzprotocol/
> 
> As a sidenote, can you explain what exactly is wrong or inconvenient
> with struct addrinfo ? I read the Book[tm] and have developped coding
> style to match Stevens' thoughts. I could be easily persuaded to change
> my code, but do not see any benefit of the sockaddr_storage yet. There's
> already a struct sockaddr in struct addrinfo, along with an ai_family and
> ai_addrlen .. so what bonus do I get from sockaddr_storage ?

	i have no problem with struct addrinfo (i LOVE it, and i wrote a book
	which describes getaddrinfo/getnameinfo and those functions ONLY).
	the Stevens book just does not match the currently-deployed
	implementation (RFC2553/3493), as the book was published before the
	standard is published.  also the book contains other errors (different
	from implementation), specifically in raw IPv6 socket description.
	so i tried to warn about it.

itojun