net/dump: Provide the dumping facility as a net-filter

Use the net-filter infrastructure to provide the dumping
functions for netdev devices, too.

Reviewed-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
Thomas Huth 2015-10-13 12:40:01 +02:00 committed by Jason Wang
parent 75310e3486
commit 9d3e12e881
2 changed files with 134 additions and 2 deletions

7
vl.c
View file

@ -2769,7 +2769,12 @@ static bool object_create_initial(const char *type)
return false;
}
if (g_str_equal(type, "filter-buffer")) {
/*
* return false for concrete netfilters since
* they depend on netdevs already existing
*/
if (g_str_equal(type, "filter-buffer") ||
g_str_equal(type, "filter-dump")) {
return false;
}