Logo Search packages:      
Sourcecode: filtergen version File versions  Download package

ast.h

/* iptables-save syntax tree data structure definitions
 *
 * Copyright (c) 2003,2004 Jamie Wilkinson <jaq@spacepants.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __IPTABLES_AST_H__
#define __IPTABLES_AST_H__

00023 struct pkt_count_s {
    char * in;
    char * out;
};

00028 struct identifier_s {
    char * id;
};

00032 struct not_identifier_s {
    int neg;
    struct identifier_s * identifier;
};

00037 struct option_s {
    char * option;
    struct not_identifier_s * not_identifier;
};

00042 struct not_option_s {
    int neg;
    struct option_s * option;
};
    
00047 struct option_list_s {
    struct option_list_s * option_list;
    struct not_option_s * not_option;
};

struct rule_s {
    char * table;
    char * chain;
    char * policy;
    struct pkt_count_s * pkt_count;
    struct option_list_s * option_list;
};

struct rule_list_s {
    struct rule_list_s * list;
    struct rule_s * rule;
};

struct ast_s {
    struct rule_list_s * list;
};

#endif /* __IPTABLES_AST_H__ */

Generated by  Doxygen 1.6.0   Back to index