File: xtcshared.h

package info (click to toggle)
iproute2 4.20.0-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,856 kB
  • sloc: ansic: 92,603; sh: 1,650; cpp: 844; makefile: 622; yacc: 400; lex: 145; perl: 101
file content (21 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LIBXTC_SHARED_H
#define _LIBXTC_SHARED_H 1

typedef char xt_chainlabel[32];
struct xtc_handle;
struct xt_counters;

struct xtc_ops {
	int (*commit)(struct xtc_handle *);
	void (*free)(struct xtc_handle *);
	int (*builtin)(const char *, struct xtc_handle *const);
	int (*is_chain)(const char *, struct xtc_handle *const);
	int (*flush_entries)(const xt_chainlabel, struct xtc_handle *);
	int (*create_chain)(const xt_chainlabel, struct xtc_handle *);
	int (*set_policy)(const xt_chainlabel, const xt_chainlabel,
			  struct xt_counters *, struct xtc_handle *);
	const char *(*strerror)(int);
};

#endif /* _LIBXTC_SHARED_H */