Re: [patch] allow write() on SOCK_PACKET sockets
From: Herbert Xu
Date: Mon Oct 11 2004 - 16:38:05 EST
Stas Sergeev <stsp@xxxxxxxx> wrote:
>
> Unless I am really missing something, there
> seem to be no reason why the SOCK_PACKET code
> does not allow to use write() or send() when
> the socket was bound, and insists on using
> sendto(). SOCK_RAW code, in comparison, allows
> write() after bind().
It is counter-intuitive to allow write after bind(). AFAIK RAW
only allows write after connect(), not bind().
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/