mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
fdccce4596
commit
e64c770d1f
3 changed files with 91 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue