diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2015-10-07 11:52:15 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2015-10-12 13:29:39 +0800 |
commit | e64c770d1fa859bd8ee583d339b085fe345ac02b (patch) | |
tree | 491ff25f460680fc3db7bbf9b4044cff341cf0a7 /include/net | |
parent | fdccce4596218e49ca4d0f5d4b3f0c453bd99ba0 (diff) |
netfilter: hook packets before net queue send
Capture packets that will be sent.
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/filter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/filter.h b/include/net/filter.h index be27dee118..db035b6ef5 100644 --- a/include/net/filter.h +++ b/include/net/filter.h @@ -58,4 +58,12 @@ struct NetFilterState { QTAILQ_ENTRY(NetFilterState) next; }; +ssize_t qemu_netfilter_receive(NetFilterState *nf, + NetFilterDirection direction, + NetClientState *sender, + unsigned flags, + const struct iovec *iov, + int iovcnt, + NetPacketSent *sent_cb); + #endif /* QEMU_NET_FILTER_H */ |