]> Git Repo - qemu.git/commit - include/net/filter.h
filter: Add 'status' property for filter object
authorzhanghailiang <[email protected]>
Tue, 1 Mar 2016 05:37:02 +0000 (13:37 +0800)
committerJason Wang <[email protected]>
Tue, 8 Mar 2016 07:34:18 +0000 (15:34 +0800)
commit338d3f415e131673ea51719b0c30edf65f69d806
tree7140a1e0b637aa6287b23d3a0db533e47f8fc124
parent9fe7101f1d3c08b01fc8b4eab736a3f8c8b44f45
filter: Add 'status' property for filter object

With this property, users can control if this filter is 'on'
or 'off'. The default behavior for filter is 'on'.

For some types of filters, they may need to react to status changing,
So here, we introduced status changing callback/notifier for filter class.

We will skip the disabled ('off') filter when delivering packets in net layer.

Signed-off-by: zhanghailiang <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: Yang Hongyang <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
include/net/filter.h
net/filter.c
qemu-options.hx
This page took 0.025697 seconds and 4 git commands to generate.