~ubuntu-branches/ubuntu/quantal/iptables/quantal-proposed

« back to all changes in this revision

Viewing changes to include/iptables.h

  • Committer: Bazaar Package Importer
  • Author(s): Nicolas Valcárcel Scerpella
  • Date: 2009-05-06 16:35:21 UTC
  • mfrom: (5.1.6 upstream) (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20090506163521-2hbruo0m33h04wxf
Tags: 1.4.3.2-2ubuntu1
* Merge from debian unstable (LP: #372920), remaining changes:
  - Don't fail to run iptables-save if iptables module isn't loaded.
  - debian/patches/0901-build-libipq_pic.a.patch - Build libipq_pic.a with
    -fPIC. Upstream changed build system and patch modified accordingly.
  - Revert changes between 1.4.1.1-3 and 1.4.1.1-4, thus bringing back
    the howtos.
* Droped unexistent patches from debian/patches/series
* Droped 0903-autoload-module-in-iptables-save.diff, fixed upstream
* Added linuxdoc-tools to Build-Depends
* Modified debian/iptables{,-dev}.install to match DM syntax 
  (removed debian/tmp)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _IPTABLES_USER_H
2
2
#define _IPTABLES_USER_H
3
3
 
4
 
#include "xtables.h"
5
 
#include "libiptc/libiptc.h"
6
 
 
7
 
#ifndef IPT_SO_GET_REVISION_MATCH /* Old kernel source. */
8
 
#define IPT_SO_GET_REVISION_MATCH       (IPT_BASE_CTL + 2)
9
 
#define IPT_SO_GET_REVISION_TARGET      (IPT_BASE_CTL + 3)
10
 
#endif /* IPT_SO_GET_REVISION_MATCH   Old kernel source */
11
 
 
12
 
#define iptables_rule_match     xtables_rule_match
13
 
#define ipt_tryload             xt_tryload
14
 
 
15
 
extern int line;
 
4
#include <netinet/ip.h>
 
5
#include <xtables.h>
 
6
#include <libiptc/libiptc.h>
 
7
#include <iptables/internal.h>
16
8
 
17
9
/* Your shared library should call one of these. */
18
10
extern int do_command(int argc, char *argv[], char **table,
19
 
                      iptc_handle_t *handle);
 
11
                      struct iptc_handle **handle);
20
12
extern int delete_chain(const ipt_chainlabel chain, int verbose,
21
 
                        iptc_handle_t *handle);
 
13
                        struct iptc_handle *handle);
22
14
extern int flush_entries(const ipt_chainlabel chain, int verbose, 
23
 
                        iptc_handle_t *handle);
24
 
extern int for_each_chain(int (*fn)(const ipt_chainlabel, int, iptc_handle_t *),
25
 
                int verbose, int builtinstoo, iptc_handle_t *handle);
 
15
                        struct iptc_handle *handle);
 
16
extern int for_each_chain(int (*fn)(const ipt_chainlabel, int, struct iptc_handle *),
 
17
                int verbose, int builtinstoo, struct iptc_handle *handle);
26
18
extern void print_rule(const struct ipt_entry *e,
27
 
                iptc_handle_t *handle, const char *chain, int counters);
 
19
                struct iptc_handle *handle, const char *chain, int counters);
28
20
 
29
21
/* kernel revision handling */
30
22
extern int kernel_version;
34
26
#define LINUX_VERSION_MINOR(x)  (((x)>> 8) & 0xFF)
35
27
#define LINUX_VERSION_PATCH(x)  ( (x)      & 0xFF)
36
28
 
 
29
extern struct xtables_globals iptables_globals;
 
30
 
37
31
#endif /*_IPTABLES_USER_H*/