1
1
// -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
2
2
// vim:set sts=4 ts=8:
4
// Copyright (c) 2001-2007 International Computer Science Institute
4
// Copyright (c) 2001-2008 International Computer Science Institute
6
6
// Permission is hereby granted, free of charge, to any person obtaining a
7
7
// copy of this software and associated documentation files (the "Software")
13
13
// notice is a summary of the XORP LICENSE file; the license in that file is
14
14
// legally binding.
16
// $XORP: xorp/fea/pa_backend_nf.hh,v 1.2 2007/02/16 22:45:48 pavlin Exp $
16
// $XORP: xorp/fea/pa_backend_nf.hh,v 1.4 2008/01/04 03:15:50 pavlin Exp $
18
18
#ifndef __FEA_PA_BACKEND_NF_HH__
19
19
#define __FEA_PA_BACKEND_NF_HH__
80
80
/* --------------------------------------------------------------------- */
81
81
/* IPv4 ACL back-end methods. */
83
bool push_entries4(const PaSnapshot4* snap);
84
bool delete_all_entries4();
83
int push_entries4(const PaSnapshot4* snap);
84
int delete_all_entries4();
85
85
const PaBackend::Snapshot4Base* create_snapshot4();
86
bool restore_snapshot4(const PaBackend::Snapshot4Base* snap);
86
int restore_snapshot4(const PaBackend::Snapshot4Base* snap);
89
89
/* --------------------------------------------------------------------- */
90
90
/* IPv6 ACL back-end methods. */
92
bool push_entries6(const PaSnapshot6* snap);
93
bool delete_all_entries6();
92
int push_entries6(const PaSnapshot6* snap);
93
int delete_all_entries6();
94
94
const PaBackend::Snapshot6Base* create_snapshot6() const;
95
bool restore_snapshot6(const PaBackend::Snapshot6Base* snap);
95
int restore_snapshot6(const PaBackend::Snapshot6Base* snap);
98
98
#ifdef HAVE_PACKETFILTER_NF
100
100
/* --------------------------------------------------------------------- */
101
101
/* Private back-end methods. */
102
bool push_rules4(unsigned int size, unsigned int num_entries,
103
struct ipt_entry *rules);
102
int push_rules4(unsigned int size, unsigned int num_entries,
103
struct ipt_entry *rules);
105
105
#endif // HAVE_PACKETFILTER_NF