2010-04-06 15:09:46 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2020-09-30 11:54:58 +00:00
|
|
|
<include href="basictypes.rng"/>
|
|
|
|
<include href="nwfilter_params.rng"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
<start>
|
|
|
|
<ref name="filter"/>
|
|
|
|
</start>
|
|
|
|
<define name="filter">
|
|
|
|
<element name="filter">
|
|
|
|
<ref name="filter-node-attributes"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
<optional>
|
|
|
|
<element name="uuid">
|
|
|
|
<ref name="UUID"/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
2010-04-06 15:09:46 +00:00
|
|
|
<zeroOrMore>
|
|
|
|
<choice>
|
|
|
|
<element name="filterref">
|
|
|
|
<ref name="filterref-node-attributes"/>
|
|
|
|
</element>
|
2010-04-28 13:12:39 +00:00
|
|
|
<element name="rule">
|
2017-09-07 10:16:04 +00:00
|
|
|
<ref name="rule-node-attributes"/>
|
2017-12-06 16:41:31 +00:00
|
|
|
<choice>
|
2018-06-21 06:07:17 +00:00
|
|
|
<empty/>
|
2010-04-28 13:12:39 +00:00
|
|
|
<element name="mac">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="common-l2-attributes"/>
|
|
|
|
<ref name="mac-attributes"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
2011-11-19 12:26:56 +00:00
|
|
|
<element name="vlan">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="common-l2-attributes"/>
|
|
|
|
<ref name="vlan-attributes"/>
|
|
|
|
<ref name="comment-attribute"/>
|
|
|
|
</element>
|
2011-11-22 20:12:03 +00:00
|
|
|
<element name="stp">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmacandmask-attributes"/>
|
|
|
|
<ref name="stp-attributes"/>
|
|
|
|
<ref name="comment-attribute"/>
|
|
|
|
</element>
|
2010-04-28 13:12:39 +00:00
|
|
|
<element name="arp">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="common-l2-attributes"/>
|
|
|
|
<ref name="arp-attributes"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="rarp">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="common-l2-attributes"/>
|
|
|
|
<ref name="arp-attributes"/> <!-- same as arp -->
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="ip">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="common-l2-attributes"/>
|
|
|
|
<ref name="common-ip-attributes-p1"/>
|
|
|
|
<ref name="common-port-attributes"/>
|
|
|
|
<ref name="ip-attributes"/>
|
|
|
|
<ref name="dscp-attribute"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="ipv6">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="common-l2-attributes"/>
|
|
|
|
<ref name="common-ipv6-attributes-p1"/>
|
|
|
|
<ref name="common-port-attributes"/>
|
|
|
|
<ref name="ip-attributes"/>
|
2015-01-07 16:41:49 +00:00
|
|
|
<ref name="icmp-attribute-ranges"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="tcp">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-port-attributes"/>
|
|
|
|
<ref name="common-ip-attributes-p1"/>
|
|
|
|
<ref name="common-ip-attributes-p2"/>
|
2011-04-08 00:13:38 +00:00
|
|
|
<ref name="tcp-attributes"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="udp">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-port-attributes"/>
|
|
|
|
<ref name="common-ip-attributes-p1"/>
|
|
|
|
<ref name="common-ip-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="sctp">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-port-attributes"/>
|
|
|
|
<ref name="common-ip-attributes-p1"/>
|
|
|
|
<ref name="common-ip-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="icmp">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ip-attributes-p1"/>
|
|
|
|
<ref name="common-ip-attributes-p2"/>
|
|
|
|
<ref name="icmp-attributes"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="igmp">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ip-attributes-p1"/>
|
|
|
|
<ref name="common-ip-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="all">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ip-attributes-p1"/>
|
|
|
|
<ref name="common-ip-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="esp">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ip-attributes-p1"/>
|
|
|
|
<ref name="common-ip-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="ah">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ip-attributes-p1"/>
|
|
|
|
<ref name="common-ip-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="udplite">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ip-attributes-p1"/>
|
|
|
|
<ref name="common-ip-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="tcp-ipv6">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-port-attributes"/>
|
|
|
|
<ref name="common-ipv6-attributes-p1"/>
|
|
|
|
<ref name="common-ipv6-attributes-p2"/>
|
2011-04-08 00:13:38 +00:00
|
|
|
<ref name="tcp-attributes"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="udp-ipv6">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-port-attributes"/>
|
|
|
|
<ref name="common-ipv6-attributes-p1"/>
|
|
|
|
<ref name="common-ipv6-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="sctp-ipv6">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-port-attributes"/>
|
|
|
|
<ref name="common-ipv6-attributes-p1"/>
|
|
|
|
<ref name="common-ipv6-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="icmpv6">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ipv6-attributes-p1"/>
|
|
|
|
<ref name="common-ipv6-attributes-p2"/>
|
|
|
|
<ref name="icmp-attributes"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="all-ipv6">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ipv6-attributes-p1"/>
|
|
|
|
<ref name="common-ipv6-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="esp-ipv6">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ipv6-attributes-p1"/>
|
|
|
|
<ref name="common-ipv6-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="ah-ipv6">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ipv6-attributes-p1"/>
|
|
|
|
<ref name="common-ipv6-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
|
|
|
<element name="udplite-ipv6">
|
|
|
|
<ref name="match-attribute"/>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<ref name="common-ipv6-attributes-p1"/>
|
|
|
|
<ref name="common-ipv6-attributes-p2"/>
|
2010-09-30 20:00:11 +00:00
|
|
|
<ref name="comment-attribute"/>
|
2010-04-28 13:12:39 +00:00
|
|
|
</element>
|
2017-12-06 16:41:31 +00:00
|
|
|
</choice>
|
2010-04-06 15:09:46 +00:00
|
|
|
</element>
|
|
|
|
</choice>
|
|
|
|
</zeroOrMore>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<!-- ########### attributes of XML nodes ############ -->
|
|
|
|
|
|
|
|
<define name="filter-node-attributes">
|
|
|
|
<attribute name="name">
|
|
|
|
<data type="NCName"/>
|
|
|
|
</attribute>
|
|
|
|
<optional>
|
|
|
|
<attribute name="chain">
|
|
|
|
<choice>
|
|
|
|
<value>root</value>
|
2011-11-22 20:12:03 +00:00
|
|
|
<data type="string">
|
2013-03-19 11:26:02 +00:00
|
|
|
<param name="pattern">mac[a-zA-Z0-9_\.:\-]{0,9}</param>
|
2011-11-22 20:12:03 +00:00
|
|
|
</data>
|
2011-11-22 20:12:03 +00:00
|
|
|
<data type="string">
|
2013-03-19 11:26:02 +00:00
|
|
|
<param name="pattern">stp[a-zA-Z0-9_\.:\-]{0,9}</param>
|
2011-11-22 20:12:03 +00:00
|
|
|
</data>
|
2011-11-19 12:26:56 +00:00
|
|
|
<data type="string">
|
2013-03-19 11:26:02 +00:00
|
|
|
<param name="pattern">vlan[a-zA-Z0-9_\.:\-]{0,8}</param>
|
2011-11-19 12:26:56 +00:00
|
|
|
</data>
|
2011-11-18 16:58:18 +00:00
|
|
|
<data type="string">
|
2013-03-19 11:26:02 +00:00
|
|
|
<param name="pattern">arp[a-zA-Z0-9_\.:\-]{0,9}</param>
|
2011-11-18 16:58:18 +00:00
|
|
|
</data>
|
|
|
|
<data type="string">
|
2013-03-19 11:26:02 +00:00
|
|
|
<param name="pattern">rarp[a-zA-Z0-9_\.:\-]{0,8}</param>
|
2011-11-18 16:58:18 +00:00
|
|
|
</data>
|
|
|
|
<data type="string">
|
2013-03-19 11:26:02 +00:00
|
|
|
<param name="pattern">ipv4[a-zA-Z0-9_\.:\-]{0,8}</param>
|
2011-11-18 16:58:18 +00:00
|
|
|
</data>
|
|
|
|
<data type="string">
|
2013-03-19 11:26:02 +00:00
|
|
|
<param name="pattern">ipv6[a-zA-Z0-9_\.:\-]{0,8}</param>
|
2011-11-18 16:58:18 +00:00
|
|
|
</data>
|
2010-04-06 15:09:46 +00:00
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2011-11-18 16:58:17 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name="priority">
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="priority-type"/>
|
2011-11-18 16:58:17 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
2010-04-06 15:09:46 +00:00
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="rule-node-attributes">
|
|
|
|
<attribute name="action">
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="action-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute name="direction">
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="direction-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
</attribute>
|
|
|
|
<optional>
|
|
|
|
<attribute name="priority">
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="priority-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
2010-06-17 18:12:34 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name="statematch">
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="statematch-type"/>
|
2010-06-17 18:12:34 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
2010-04-06 15:09:46 +00:00
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="match-attribute">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
2017-09-07 10:16:04 +00:00
|
|
|
<attribute name="match">
|
|
|
|
<ref name="virYesNo"/>
|
|
|
|
</attribute>
|
2010-04-06 15:09:46 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="srcmac-attribute">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
2017-09-07 10:16:04 +00:00
|
|
|
<attribute name="srcmacaddr">
|
|
|
|
<ref name="addrMAC"/>
|
|
|
|
</attribute>
|
2010-04-06 15:09:46 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2011-11-22 20:12:03 +00:00
|
|
|
<define name="srcmacandmask-attributes">
|
2010-04-06 15:09:46 +00:00
|
|
|
<interleave>
|
|
|
|
<ref name="srcmac-attribute"/>
|
|
|
|
<optional>
|
2017-09-07 10:16:04 +00:00
|
|
|
<attribute name="srcmacmask">
|
|
|
|
<ref name="addrMAC"/>
|
|
|
|
</attribute>
|
2010-04-06 15:09:46 +00:00
|
|
|
</optional>
|
2011-11-22 20:12:03 +00:00
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="common-l2-attributes">
|
|
|
|
<interleave>
|
|
|
|
<ref name="srcmacandmask-attributes"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
<optional>
|
2017-09-07 10:16:04 +00:00
|
|
|
<attribute name="dstmacaddr">
|
|
|
|
<ref name="addrMAC"/>
|
|
|
|
</attribute>
|
2010-04-06 15:09:46 +00:00
|
|
|
</optional>
|
|
|
|
<optional>
|
2017-09-07 10:16:04 +00:00
|
|
|
<attribute name="dstmacmask">
|
|
|
|
<ref name="addrMAC"/>
|
|
|
|
</attribute>
|
2010-04-06 15:09:46 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="common-ip-attributes-p1">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<attribute name="srcipaddr">
|
|
|
|
<ref name="addrIP"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="srcipmask">
|
|
|
|
<ref name="addrMask"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dstipaddr">
|
|
|
|
<ref name="addrIP"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dstipmask">
|
|
|
|
<ref name="addrMask"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="common-ip-attributes-p2">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<attribute name="srcipfrom">
|
|
|
|
<ref name="addrIP"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="srcipto">
|
|
|
|
<ref name="addrIP"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dstipfrom">
|
|
|
|
<ref name="addrIP"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dstipto">
|
|
|
|
<ref name="addrIP"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dscp">
|
|
|
|
<ref name="sixbitrange"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2010-04-23 15:42:39 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name="connlimit-above">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2010-10-07 10:44:41 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name="state">
|
|
|
|
<ref name="stateflags-type"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2012-05-21 10:26:34 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name="ipset">
|
|
|
|
<ref name="ipset-name-type"/>
|
|
|
|
</attribute>
|
|
|
|
<attribute name="ipsetflags">
|
|
|
|
<ref name="ipset-flags-type"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2010-04-06 15:09:46 +00:00
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="common-ipv6-attributes-p1">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<attribute name="srcipaddr">
|
|
|
|
<ref name="addrIPv6"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="srcipmask">
|
|
|
|
<ref name="addrMaskv6"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dstipaddr">
|
|
|
|
<ref name="addrIPv6"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dstipmask">
|
|
|
|
<ref name="addrMaskv6"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="common-ipv6-attributes-p2">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<attribute name="srcipfrom">
|
|
|
|
<ref name="addrIPv6"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="srcipto">
|
|
|
|
<ref name="addrIPv6"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dstipfrom">
|
|
|
|
<ref name="addrIPv6"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dstipto">
|
|
|
|
<ref name="addrIPv6"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dscp">
|
|
|
|
<ref name="sixbitrange"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="common-port-attributes">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<attribute name="srcportstart">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="srcportend">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dstportstart">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="dstportend">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="icmp-attributes">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<attribute name="type">
|
2016-03-22 16:00:40 +00:00
|
|
|
<ref name="uint8"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="code">
|
2016-03-22 16:00:40 +00:00
|
|
|
<ref name="uint8"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2015-01-07 16:41:49 +00:00
|
|
|
<define name="icmp-attribute-ranges">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<attribute name="type">
|
2016-03-22 16:00:40 +00:00
|
|
|
<ref name="uint8"/>
|
2015-01-07 16:41:49 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="typeend">
|
2016-03-22 16:00:40 +00:00
|
|
|
<ref name="uint8"/>
|
2015-01-07 16:41:49 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="code">
|
2016-03-22 16:00:40 +00:00
|
|
|
<ref name="uint8"/>
|
2015-01-07 16:41:49 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="codeend">
|
2016-03-22 16:00:40 +00:00
|
|
|
<ref name="uint8"/>
|
2015-01-07 16:41:49 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2010-04-06 15:09:46 +00:00
|
|
|
<define name="mac-attributes">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<attribute name="protocolid">
|
|
|
|
<ref name="mac-protocolid"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2011-11-19 12:26:56 +00:00
|
|
|
<define name="vlan-attributes">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<attribute name="vlanid">
|
|
|
|
<ref name="vlan-vlanid"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="encap-protocol">
|
|
|
|
<ref name="mac-protocolid"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2011-11-22 20:12:03 +00:00
|
|
|
<define name="stp-attributes">
|
|
|
|
<optional>
|
|
|
|
<attribute name="type">
|
2016-03-22 16:00:40 +00:00
|
|
|
<ref name="uint8"/>
|
2011-11-22 20:12:03 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="flags">
|
2016-03-22 16:00:40 +00:00
|
|
|
<ref name="uint8"/>
|
2011-11-22 20:12:03 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="root-priority">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="root-priority-hi">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="root-address">
|
|
|
|
<ref name="addrMAC"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="root-address-mask">
|
|
|
|
<ref name="addrMAC"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="root-cost">
|
|
|
|
<ref name="uint32range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="root-cost-hi">
|
|
|
|
<ref name="uint32range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="sender-priority">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="sender-priority-hi">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="sender-address">
|
|
|
|
<ref name="addrMAC"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="sender-address-mask">
|
|
|
|
<ref name="addrMAC"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="port">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="port-hi">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="age">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="age-hi">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="max-age">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="max-age-hi">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="hello-time">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="hello-time-hi">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="forward-delay">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="forward-delay-hi">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
2010-04-06 15:09:46 +00:00
|
|
|
<define name="arp-attributes">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<attribute name="arpsrcmacaddr">
|
|
|
|
<ref name="addrMAC"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="arpsrcipaddr">
|
|
|
|
<ref name="addrIP"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="arpdstmacaddr">
|
|
|
|
<ref name="addrMAC"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="arpdstipaddr">
|
|
|
|
<ref name="addrIP"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="hwtype">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="opcode">
|
|
|
|
<ref name="arpOpcodeType"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name="protocoltype">
|
|
|
|
<ref name="uint16range"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2011-05-23 23:41:18 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name="gratuitous">
|
|
|
|
<ref name="boolean"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2017-09-07 10:16:04 +00:00
|
|
|
</interleave>
|
2010-04-06 15:09:46 +00:00
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="ip-attributes">
|
|
|
|
<optional>
|
|
|
|
<attribute name="protocol">
|
2017-09-07 10:16:04 +00:00
|
|
|
<ref name="ipProtocolType"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="dscp-attribute">
|
|
|
|
<optional>
|
|
|
|
<attribute name="dscp">
|
|
|
|
<ref name="sixbitrange"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
2010-09-30 20:00:11 +00:00
|
|
|
<define name="comment-attribute">
|
|
|
|
<optional>
|
|
|
|
<attribute name="comment">
|
|
|
|
<ref name="comment-type"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
2011-04-08 00:13:38 +00:00
|
|
|
<define name="tcp-attributes">
|
|
|
|
<optional>
|
|
|
|
<attribute name="flags">
|
|
|
|
<ref name="tcpflags-type"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
2010-04-06 15:09:46 +00:00
|
|
|
<!-- ################ type library ################ -->
|
|
|
|
|
2012-01-11 11:42:37 +00:00
|
|
|
<define name="variable-name-type">
|
|
|
|
<data type="string">
|
2020-10-07 14:19:42 +00:00
|
|
|
<param name="pattern">$[ ]*[a-zA-Z0-9_]+(\[[ ]*[@]?[0-9]+[ ]*\])?[ ]*</param>
|
2012-01-11 11:42:37 +00:00
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
|
2010-04-06 15:09:46 +00:00
|
|
|
<define name="addrMAC">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
|
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">([a-fA-F0-9]{1,2}:){5}[a-fA-F0-9]{1,2}</param>
|
|
|
|
</data>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="addrIP">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
|
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">([0-2]?[0-9]?[0-9]\.){3}[0-2]?[0-9]?[0-9]</param>
|
|
|
|
</data>
|
2017-09-07 10:16:04 +00:00
|
|
|
</choice>
|
2010-04-06 15:09:46 +00:00
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="addrIPv6">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
|
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">([a-fA-F0-9]{0,4}:){2,7}([a-fA-F0-9]*)(([0-2]?[0-9]?[0-9]\.){3}[0-2]?[0-9]?[0-9])?</param>
|
|
|
|
</data>
|
2017-09-07 10:16:04 +00:00
|
|
|
</choice>
|
2010-04-06 15:09:46 +00:00
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="addrMask">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
|
|
|
|
<data type="int">
|
|
|
|
<param name="minInclusive">0</param>
|
|
|
|
<param name="maxInclusive">32</param>
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">([0-2]?[0-9]?[0-9]\.){3}[0-2]?[0-9]?[0-9]</param>
|
|
|
|
</data>
|
2017-09-07 10:16:04 +00:00
|
|
|
</choice>
|
2010-04-06 15:09:46 +00:00
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="addrMaskv6">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
|
|
|
|
<data type="int">
|
|
|
|
<param name="minInclusive">0</param>
|
|
|
|
<param name="maxInclusive">128</param>
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">([a-fA-F0-9]{0,4}:){2,7}([a-fA-F0-9]*)</param>
|
|
|
|
</data>
|
2017-09-07 10:16:04 +00:00
|
|
|
</choice>
|
2010-04-06 15:09:46 +00:00
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="sixbitrange">
|
|
|
|
<choice>
|
2010-04-26 17:50:40 +00:00
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">0x([0-3][0-9a-fA-F]|[0-9a-fA-F])</param>
|
|
|
|
</data>
|
|
|
|
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
|
|
|
|
<data type="int">
|
|
|
|
<param name="minInclusive">0</param>
|
|
|
|
<param name="maxInclusive">63</param>
|
|
|
|
</data>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="mac-protocolid">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
|
2010-04-26 17:50:40 +00:00
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">0x([6-9a-fA-F][0-9a-fA-F]{2}|[0-9a-fA-F]{4})</param>
|
|
|
|
</data>
|
|
|
|
|
2010-04-06 15:09:46 +00:00
|
|
|
<data type="int">
|
|
|
|
<param name="minInclusive">1536</param>
|
|
|
|
<param name="maxInclusive">65535</param>
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<choice>
|
|
|
|
<value>arp</value>
|
2010-04-28 13:12:39 +00:00
|
|
|
<value>rarp</value>
|
2010-04-06 15:09:46 +00:00
|
|
|
<value>ipv4</value>
|
|
|
|
<value>ipv6</value>
|
2011-11-19 12:26:56 +00:00
|
|
|
<value>vlan</value>
|
2010-04-06 15:09:46 +00:00
|
|
|
</choice>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2011-11-19 12:26:56 +00:00
|
|
|
<define name="vlan-vlanid">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2011-11-19 12:26:56 +00:00
|
|
|
|
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">0x([0-9a-fA-F]{1,3})</param>
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<data type="int">
|
|
|
|
<param name="minInclusive">0</param>
|
|
|
|
<param name="maxInclusive">4095</param>
|
|
|
|
</data>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2010-04-06 15:09:46 +00:00
|
|
|
<define name="uint16range">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
|
2010-04-26 17:50:40 +00:00
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">0x[0-9a-fA-F]{1,4}</param>
|
|
|
|
</data>
|
|
|
|
|
2010-04-06 15:09:46 +00:00
|
|
|
<data type="int">
|
|
|
|
<param name="minInclusive">0</param>
|
|
|
|
<param name="maxInclusive">65535</param>
|
|
|
|
</data>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2011-11-22 20:12:03 +00:00
|
|
|
<define name="uint32range">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2011-11-22 20:12:03 +00:00
|
|
|
|
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">0x[0-9a-fA-F]{1,8}</param>
|
|
|
|
</data>
|
|
|
|
|
2013-03-19 11:26:02 +00:00
|
|
|
<data type="unsignedInt"/>
|
2011-11-22 20:12:03 +00:00
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2011-05-23 23:41:18 +00:00
|
|
|
<define name="boolean">
|
|
|
|
<choice>
|
|
|
|
<value>yes</value>
|
|
|
|
<value>no</value>
|
|
|
|
<value>true</value>
|
|
|
|
<value>false</value>
|
|
|
|
<value>1</value>
|
|
|
|
<value>0</value>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2010-04-06 15:09:46 +00:00
|
|
|
<define name="arpOpcodeType">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
|
|
|
|
<data type="int">
|
|
|
|
<param name="minInclusive">0</param>
|
|
|
|
<param name="maxInclusive">65535</param>
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">([Rr]eply|[Rr]equest|[Rr]equest_[Rr]everse|[Rr]eply_[Rr]everse|DRARP_[Rr]equest|DRARP_[Rr]eply|DRARP_[Ee]rror|InARP_[Rr]equest|ARP_NAK)</param>
|
|
|
|
</data>
|
|
|
|
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="ipProtocolType">
|
|
|
|
<choice>
|
2012-01-11 11:42:37 +00:00
|
|
|
<ref name="variable-name-type"/>
|
2010-04-06 15:09:46 +00:00
|
|
|
|
2010-04-26 17:50:40 +00:00
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">0x[0-9a-fA-F]{1,2}</param>
|
|
|
|
</data>
|
|
|
|
|
2010-04-06 15:09:46 +00:00
|
|
|
<data type="int">
|
|
|
|
<param name="minInclusive">0</param>
|
|
|
|
<param name="maxInclusive">255</param>
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<choice>
|
|
|
|
<value>tcp</value>
|
|
|
|
<value>udp</value>
|
|
|
|
<value>udplite</value>
|
|
|
|
<value>esp</value>
|
|
|
|
<value>ah</value>
|
|
|
|
<value>icmp</value>
|
|
|
|
<value>igmp</value>
|
|
|
|
<value>sctp</value>
|
|
|
|
<value>icmpv6</value>
|
|
|
|
</choice>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="action-type">
|
2010-04-06 15:09:46 +00:00
|
|
|
<choice>
|
|
|
|
<value>drop</value>
|
|
|
|
<value>accept</value>
|
2011-02-19 01:13:40 +00:00
|
|
|
<value>reject</value>
|
2011-10-25 15:21:57 +00:00
|
|
|
<value>continue</value>
|
|
|
|
<value>return</value>
|
2010-04-06 15:09:46 +00:00
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="direction-type">
|
2010-04-06 15:09:46 +00:00
|
|
|
<choice>
|
|
|
|
<value>in</value>
|
|
|
|
<value>out</value>
|
|
|
|
<value>inout</value>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="priority-type">
|
2017-09-07 10:16:04 +00:00
|
|
|
<data type="int">
|
|
|
|
<param name="minInclusive">-1000</param>
|
|
|
|
<param name="maxInclusive">1000</param>
|
|
|
|
</data>
|
2010-04-06 15:09:46 +00:00
|
|
|
</define>
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="statematch-type">
|
2010-06-17 18:12:34 +00:00
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">([Ff][Aa][Ll][Ss][Ee]|0)</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
2010-09-30 20:00:11 +00:00
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="comment-type">
|
2010-09-30 20:00:11 +00:00
|
|
|
<data type="string"/>
|
|
|
|
</define>
|
2010-10-07 10:44:41 +00:00
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="stateflags-type">
|
2010-10-07 10:44:41 +00:00
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">((NEW|ESTABLISHED|RELATED|INVALID)(,(NEW|ESTABLISHED|RELATED|INVALID))*|NONE)</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
2011-04-08 00:13:38 +00:00
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="tcpflags-type">
|
2011-04-08 00:13:38 +00:00
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">((SYN|ACK|URG|PSH|FIN|RST)(,(SYN|ACK|URG|PSH|FIN|RST))*|ALL|NONE)/((SYN|ACK|URG|PSH|FIN|RST)(,(SYN|ACK|URG|PSH|FIN|RST))*|ALL|NONE)</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
2012-05-21 10:26:34 +00:00
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="ipset-name-type">
|
2012-05-21 10:26:34 +00:00
|
|
|
<choice>
|
|
|
|
<ref name="variable-name-type"/>
|
|
|
|
<data type="string">
|
|
|
|
<param name="pattern">[a-zA-Z0-9_\.:\-\+ ]{1,31}</param>
|
|
|
|
</data>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="ipset-flags-type">
|
2012-05-21 10:26:34 +00:00
|
|
|
<data type="string">
|
2020-10-07 13:37:40 +00:00
|
|
|
<param name="pattern">([Ss][Rr][Cc]|[Dd][Ss][Tt])(,([Ss][Rr][Cc]|[Dd][Ss][Tt])){0,5}</param>
|
2012-05-21 10:26:34 +00:00
|
|
|
</data>
|
|
|
|
</define>
|
2010-04-06 15:09:46 +00:00
|
|
|
</grammar>
|