Subject: Re: Use of sun_len in AF_UNIX socket addresses
To: SODA Noriyuki <soda@sra.co.jp>
From: Martin Husemann <martin@duskware.de>
List: tech-net
Date: 10/11/2006 11:38:11
On Wed, Oct 11, 2006 at 05:06:13PM +0900, SODA Noriyuki wrote:
> Currently we are not using the value of sa_len provided by the
> userland,

Ah, this is the point I originally missed.

This should go into unix(4) then, in addition to the example recently
added (and maybe an explicit hint how to use it with longer path names).

> but using the 3rd argument (namelen) of bind(2) and
> connect(2), aren't we (as you see in "sa->sa_len = buflen" in
> sockargs(9)))?

That is great! It means we should remove all uses of SUN_LEN() from
the kernel, doesn't it?

Martin