From: YOSHIFUJI Hideaki <[EMAIL PROTECTED]> Date: Fri, 09 Feb 2007 01:55:39 +0900 (JST)
> In article <[EMAIL PROTECTED]> (at Thu, 08 Feb 2007 16:32:11 +0000), David > Howells <[EMAIL PROTECTED]> says: > > > (2) A local address can optionally be bound: > > > > struct sockaddr_rxrpc srx = { > > .srx_family = AF_RXRPC, > > .srx_service = 0, /* we're a client */ > > .transport_type = SOCK_DGRAM, /* type of transport socket */ > > .transport.sin_family = AF_INET, > > .transport.sin_port = htons(7000), /* AFS callback */ > > .transport.sin_address = 0, /* all local interfaces */ > > }; > > This sockaddr_rxrpc{} should NOT include sockaddr_in{} directly. > Please use sockaddr_storage{} (or sockaddr{}, maybe), and make it > sure to align on 64-bit word. This is correct. David, we should make the suggested changes in order to support IPv6 (and theoretically other address families as the transport) cleanly. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html