summaryrefslogtreecommitdiff
path: root/tools/lib/api/debug.h
blob: a0872f68fc56bb92629be3bb3963e00f90369553 (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef __API_DEBUG_H__
#define __API_DEBUG_H__

typedef int (*libapi_print_fn_t)(const char *, ...);

void libapi_set_print(libapi_print_fn_t warn,
		      libapi_print_fn_t info,
		      libapi_print_fn_t debug);

#endif /* __API_DEBUG_H__ */
value='2'>stat only
authorWillem de Bruijn <willemb@google.com>2017-01-02 17:19:44 -0500
committerPablo Neira Ayuso <pablo@netfilter.org>2017-01-09 17:24:54 +0100
commitb5040f6c33a51e6e1fddab75baf0f45d4943cde4 (patch)
treeefe41007d93a0e2a98b36dee97918628d7a8c434 /net/x25/x25_route.c
parent244b531bee2bdcfcd35ca2fff9cc7d073b3aa060 (diff)
ebtables: use match, target and data copy_to_user helpers
Convert ebtables to copying entries, matches and targets one by one. The solution is analogous to that of generic xt_(match|target)_to_user helpers, but is applied to different structs. Convert existing helpers ebt_make_XXXname helpers that overwrite fields of an already copy_to_user'd struct with ebt_XXX_to_user helpers that copy all relevant fields of the struct from scratch. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/x25/x25_route.c')