X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Fiptables.h;h=25f36aeb14925e69ef0e3d8cc2a9533daf26b302;hb=b4a5a91c5a4ca186690479ddc0fff26644c98c93;hp=5aca69a6a0a9ba31874fb8c0681e20e04b403ef4;hpb=143d7e99faac73b7f2947e37df31a75738eeadde;p=iproute2.git diff --git a/include/iptables.h b/include/iptables.h index 5aca69a..25f36ae 100644 --- a/include/iptables.h +++ b/include/iptables.h @@ -4,10 +4,26 @@ #include "iptables_common.h" #include "libiptc/libiptc.h" +#ifndef IPT_LIB_DIR +#define IPT_LIB_DIR "/usr/local/lib/iptables" +#endif + #ifndef IPPROTO_SCTP #define IPPROTO_SCTP 132 #endif +#ifndef IPT_SO_GET_REVISION_MATCH /* Old kernel source. */ +#define IPT_SO_GET_REVISION_MATCH (IPT_BASE_CTL + 2) +#define IPT_SO_GET_REVISION_TARGET (IPT_BASE_CTL + 3) + +struct ipt_get_revision +{ + char name[IPT_FUNCTION_MAXNAMELEN-1]; + + u_int8_t revision; +}; +#endif /* IPT_SO_GET_REVISION_MATCH Old kernel source */ + struct iptables_rule_match { struct iptables_rule_match *next; @@ -22,6 +38,9 @@ struct iptables_match ipt_chainlabel name; + /* Revision of match (0 by default). */ + u_int8_t revision; + const char *version; /* Size of match data. */ @@ -72,6 +91,9 @@ struct iptables_target ipt_chainlabel name; + /* Revision of target (0 by default). */ + u_int8_t revision; + const char *version; /* Size of target data. */