summaryrefslogtreecommitdiffstats
path: root/include/net/net.h
diff options
context:
space:
mode:
authorYang Hongyang <yanghy@cn.fujitsu.com>2015-10-07 11:52:14 +0800
committerJason Wang <jasowang@redhat.com>2015-10-12 13:23:40 +0800
commitfdccce4596218e49ca4d0f5d4b3f0c453bd99ba0 (patch)
treef08596389c826fae079e3644be2fc031119115cf /include/net/net.h
parent9abce56d7b319b0c78b487720d128706272e0a0c (diff)
downloadhqemu-fdccce4596218e49ca4d0f5d4b3f0c453bd99ba0.zip
hqemu-fdccce4596218e49ca4d0f5d4b3f0c453bd99ba0.tar.gz
init/cleanup of netfilter object
Add a netfilter object based on QOM. A netfilter is attached to a netdev, captures all network packets that pass through the netdev. When we delete the netdev, we also delete the netfilter object attached to it, because if the netdev is removed, the filter which attached to it is useless. Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/net/net.h')
-rw-r--r--include/net/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/net.h b/include/net/net.h
index 6a6cbef..36e5fab 100644
--- a/include/net/net.h
+++ b/include/net/net.h
@@ -92,6 +92,7 @@ struct NetClientState {
NetClientDestructor *destructor;
unsigned int queue_index;
unsigned rxfilter_notify_enabled:1;
+ QTAILQ_HEAD(, NetFilterState) filters;
};
typedef struct NICState {
OpenPOWER on IntegriCloud