lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20091103151030.GB8609@gondor.apana.org.au> Date: Tue, 3 Nov 2009 10:10:30 -0500 From: Herbert Xu <herbert@...dor.apana.org.au> To: "Michael S. Tsirkin" <mst@...hat.com> Cc: David Miller <davem@...emloft.net>, Eric Dumazet <eric.dumazet@...il.com>, Paul Moore <paul.moore@...com>, netdev@...r.kernel.org Subject: Re: [PATCHv2] tun: export underlying socket On Mon, Nov 02, 2009 at 07:20:22PM +0200, Michael S. Tsirkin wrote: > Tun device looks similar to a packet socket > in that both pass complete frames from/to userspace. > > This patch fills in enough fields in the socket underlying tun driver > to support sendmsg/recvmsg operations, and message flags > MSG_TRUNC and MSG_DONTWAIT, and exports access to this socket > to modules. Regular read/write behaviour is unchanged. > > This way, code using raw sockets to inject packets > into a physical device, can support injecting > packets into host network stack almost without modification. > > First user of this interface will be vhost virtualization > accelerator. > > Signed-off-by: Michael S. Tsirkin <mst@...hat.com> Acked-by: Herbert Xu <herbert@...dor.apana.org.au> -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au> 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 netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists