net/net.c: Add vnet_hdr support in SocketReadState
commit3cde5ea211ead04997e2ecd7f8bdc831f84700e6
authorZhang Chen <zhangchen.fnst@cn.fujitsu.com>
Tue, 4 Jul 2017 06:53:46 +0000 (4 14:53 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 17 Jul 2017 12:02:11 +0000 (17 20:02 +0800)
treee63da97b2e530ad8f580643e69b618adff446f14
parentd6b732e953673e4e1f4b36868c206a08213b6708
net/net.c: Add vnet_hdr support in SocketReadState

We add a flag to decide whether net_fill_rstate() need read
the vnet_hdr_len or not.

Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Suggested-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
include/net/net.h
net/colo-compare.c
net/filter-mirror.c
net/net.c
net/socket.c