netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
iptables-xml.c File Reference
#include <getopt.h>
#include <sys/errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "iptables.h"
#include "libiptc/libiptc.h"
#include "xtables-multi.h"
#include <xtables.h>
Include dependency graph for iptables-xml.c:

Data Structures

struct  chain
 struct chain - nftables chain More...
 

Macros

#define DEBUGP(x, args...)
 
#define prog_name   iptables_xml_globals.program_name
 
#define prog_vers   iptables_xml_globals.program_version
 
#define XT_CHAIN_MAXNAMELEN   XT_TABLE_MAXNAMELEN
 
#define maxChains   10240 /* max chains per table */
 
#define CLOSE_LEVEL(LEVEL)
 
#define OPEN_LEVEL(LEVEL, TAG)
 

Functions

int iptables_xml_main (int argc, char *argv[])
 

Variables

struct xtables_globals iptables_xml_globals
 

Macro Definition Documentation

#define CLOSE_LEVEL (   LEVEL)
Value:
do { \
if (level ## LEVEL) printf("</%s>\n", \
(leveltag ## LEVEL)?(leveltag ## LEVEL):(level ## LEVEL)); \
level ## LEVEL=NULL;\
} while(0)
#define NULL
Definition: linux_stddef.h:8
#define LEVEL
Definition: buffer.h:51
#define DEBUGP (   x,
  args... 
)

Referenced by iptables_xml_main().

#define maxChains   10240 /* max chains per table */
#define OPEN_LEVEL (   LEVEL,
  TAG 
)
Value:
do {\
level ## LEVEL=TAG;\
if (leveltag ## LEVEL) {\
printf("%s<%s ", (leveli ## LEVEL), \
(leveltag ## LEVEL));\
xmlAttrS("type", (TAG)); \
} else printf("%s<%s ", (leveli ## LEVEL), (level ## LEVEL)); \
} while(0)
#define LEVEL
Definition: buffer.h:51
#define prog_name   iptables_xml_globals.program_name

Referenced by iptables_xml_main().

#define prog_vers   iptables_xml_globals.program_version
#define XT_CHAIN_MAXNAMELEN   XT_TABLE_MAXNAMELEN

Function Documentation

int iptables_xml_main ( int  argc,
char *  argv[] 
)

References buffer, chain::chain, DEBUGP, line, NULL, PARAMETER_PROBLEM, chain::policy, prog_name, xtables_error, and xtables_set_params().

Here is the call graph for this function:

Variable Documentation

struct xtables_globals iptables_xml_globals
Initial value:
= {
.option_offset = 0,
.program_version = IPTABLES_VERSION,
.program_name = "iptables-xml",
}