net: use "socket" model name for UDP sockets
commitf0e3ac70341febed02591b61b579723279783053
authorLei Li <lilei@linux.vnet.ibm.com>
Thu, 1 Nov 2012 09:39:55 +0000 (1 17:39 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 1 Nov 2012 10:00:59 +0000 (1 11:00 +0100)
treea52f02686d87c16774e6a1dd737dc9f686d609e1
parente5b8b0d4ba29fe1268ba049519a1b0cf8552a21a
net: use "socket" model name for UDP sockets

Fix the problem that can not delete the udp socket.
It's caused by passing "udp" model to net_socket_udp_init,
but we do not have "udp" model in our model list.
Pass the right model "socket" to init function.

https://bugs.launchpad.net/qemu/+bug/1073585?comments=all

Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
net/socket.c