1143611Sphilip#
2205607Ssyrinx# Copyright (c) 2010 Philip Paeps <philip@FreeBSD.org>
3143611Sphilip# All rights reserved.
4143611Sphilip#
5143611Sphilip# Redistribution and use in source and binary forms, with or without
6143611Sphilip# modification, are permitted provided that the following conditions
7143611Sphilip# are met:
8143611Sphilip# 1. Redistributions of source code must retain the above copyright
9143611Sphilip#    notice, this list of conditions and the following disclaimer.
10143611Sphilip# 2. Redistributions in binary form must reproduce the above copyright
11143611Sphilip#    notice, this list of conditions and the following disclaimer in the
12143611Sphilip#    documentation and/or other materials provided with the distribution.
13143611Sphilip#
14143611Sphilip# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15143611Sphilip# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16143611Sphilip# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17143611Sphilip# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18143611Sphilip# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19143611Sphilip# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20143611Sphilip# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21143611Sphilip# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22143611Sphilip# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23143611Sphilip# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24143611Sphilip# SUCH DAMAGE.
25143611Sphilip#
26143611Sphilip# $FreeBSD$
27143611Sphilip#
28143611Sphilip
29143611Sphilip(1 internet
30143611Sphilip  (4 private
31143611Sphilip    (1 enterprises
32143611Sphilip      (12325 fokus
33143611Sphilip        (1 begemot
34143611Sphilip          (200 begemotPf
35143611Sphilip            (1 begemotPfObjects
36143611Sphilip              (1 pfStatus
37205607Ssyrinx                (1 pfStatusRunning ENUM ( 1 true 2 false ) pf_status GET)
38143611Sphilip                (2 pfStatusRuntime TIMETICKS pf_status GET)
39205607Ssyrinx                (3 pfStatusDebug ENUM ( 0 none 1 urgent 2 misc 3 loud ) pf_status GET)
40143611Sphilip                (4 pfStatusHostId OCTETSTRING pf_status GET)
41143611Sphilip              )
42143611Sphilip              (2 pfCounter
43143611Sphilip                (1 pfCounterMatch COUNTER64 pf_counter GET)
44143611Sphilip                (2 pfCounterBadOffset COUNTER64 pf_counter GET)
45143611Sphilip                (3 pfCounterFragment COUNTER64 pf_counter GET)
46143611Sphilip                (4 pfCounterShort COUNTER64 pf_counter GET)
47143611Sphilip                (5 pfCounterNormalize COUNTER64 pf_counter GET)
48143611Sphilip                (6 pfCounterMemDrop COUNTER64 pf_counter GET)
49143611Sphilip              )
50143611Sphilip              (3 pfStateTable
51143611Sphilip                (1 pfStateTableCount UNSIGNED32 pf_statetable GET)
52143611Sphilip                (2 pfStateTableSearches COUNTER64 pf_statetable GET)
53143611Sphilip                (3 pfStateTableInserts COUNTER64 pf_statetable GET)
54143611Sphilip                (4 pfStateTableRemovals COUNTER64 pf_statetable GET)
55143611Sphilip              )
56143611Sphilip              (4 pfSrcNodes
57143611Sphilip                (1 pfSrcNodesCount UNSIGNED32 pf_srcnodes GET)
58143611Sphilip                (2 pfSrcNodesSearches COUNTER64 pf_srcnodes GET)
59143611Sphilip                (3 pfSrcNodesInserts COUNTER64 pf_srcnodes GET)
60143611Sphilip                (4 pfSrcNodesRemovals COUNTER64 pf_srcnodes GET)
61143611Sphilip              )
62143611Sphilip              (5 pfLimits
63143611Sphilip                (1 pfLimitsStates UNSIGNED32 pf_limits GET)
64143611Sphilip                (2 pfLimitsSrcNodes UNSIGNED32 pf_limits GET)
65143611Sphilip                (3 pfLimitsFrags UNSIGNED32 pf_limits GET)
66143611Sphilip              )
67143611Sphilip              (6 pfTimeouts
68143611Sphilip                (1 pfTimeoutsTcpFirst INTEGER32 pf_timeouts GET)
69143611Sphilip                (2 pfTimeoutsTcpOpening INTEGER32 pf_timeouts GET)
70143611Sphilip                (3 pfTimeoutsTcpEstablished INTEGER32 pf_timeouts GET)
71143611Sphilip                (4 pfTimeoutsTcpClosing INTEGER32 pf_timeouts GET)
72143611Sphilip                (5 pfTimeoutsTcpFinWait INTEGER32 pf_timeouts GET)
73143611Sphilip                (6 pfTimeoutsTcpClosed INTEGER32 pf_timeouts GET)
74143611Sphilip                (7 pfTimeoutsUdpFirst INTEGER32 pf_timeouts GET)
75143611Sphilip                (8 pfTimeoutsUdpSingle INTEGER32 pf_timeouts GET)
76143611Sphilip                (9 pfTimeoutsUdpMultiple INTEGER32 pf_timeouts GET)
77143611Sphilip                (10 pfTimeoutsIcmpFirst INTEGER32 pf_timeouts GET)
78143611Sphilip                (11 pfTimeoutsIcmpError INTEGER32 pf_timeouts GET)
79143611Sphilip                (12 pfTimeoutsOtherFirst INTEGER32 pf_timeouts GET)
80143611Sphilip                (13 pfTimeoutsOtherSingle INTEGER32 pf_timeouts GET)
81143611Sphilip                (14 pfTimeoutsOtherMultiple INTEGER32 pf_timeouts GET)
82143611Sphilip                (15 pfTimeoutsFragment INTEGER32 pf_timeouts GET)
83143611Sphilip                (16 pfTimeoutsInterval INTEGER32 pf_timeouts GET)
84143611Sphilip                (17 pfTimeoutsAdaptiveStart INTEGER32 pf_timeouts GET)
85143611Sphilip                (18 pfTimeoutsAdaptiveEnd INTEGER32 pf_timeouts GET)
86143611Sphilip                (19 pfTimeoutsSrcNode INTEGER32 pf_timeouts GET)
87143611Sphilip              )
88143611Sphilip              (7 pfLogInterface
89143611Sphilip                (1 pfLogInterfaceName OCTETSTRING pf_logif GET)
90143611Sphilip                (2 pfLogInterfaceIp4BytesIn COUNTER64 pf_logif GET)
91143611Sphilip                (3 pfLogInterfaceIp4BytesOut COUNTER64 pf_logif GET)
92143611Sphilip                (4 pfLogInterfaceIp4PktsInPass COUNTER64 pf_logif GET)
93143611Sphilip                (5 pfLogInterfaceIp4PktsInDrop COUNTER64 pf_logif GET)
94143611Sphilip                (6 pfLogInterfaceIp4PktsOutPass COUNTER64 pf_logif GET)
95143611Sphilip                (7 pfLogInterfaceIp4PktsOutDrop COUNTER64 pf_logif GET)
96143611Sphilip                (8 pfLogInterfaceIp6BytesIn COUNTER64 pf_logif GET)
97143611Sphilip                (9 pfLogInterfaceIp6BytesOut COUNTER64 pf_logif GET)
98143611Sphilip                (10 pfLogInterfaceIp6PktsInPass COUNTER64 pf_logif GET)
99143611Sphilip                (11 pfLogInterfaceIp6PktsInDrop COUNTER64 pf_logif GET)
100143611Sphilip                (12 pfLogInterfaceIp6PktsOutPass COUNTER64 pf_logif GET)
101143611Sphilip                (13 pfLogInterfaceIp6PktsOutDrop COUNTER64 pf_logif GET)
102143611Sphilip              )
103143611Sphilip              (8 pfInterfaces
104143611Sphilip                (1 pfInterfacesIfNumber INTEGER32 pf_interfaces GET)
105143611Sphilip                (2 pfInterfacesIfTable
106143611Sphilip                  (1 pfInterfacesIfEntry : INTEGER32 pf_iftable
107143611Sphilip                    (1 pfInterfacesIfIndex INTEGER32)
108143611Sphilip                    (2 pfInterfacesIfDescr OCTETSTRING GET)
109205607Ssyrinx                    (3 pfInterfacesIfType ENUM ( 0 group 1 instance 2 detached ) GET)
110143611Sphilip		    (4 pfInterfacesIfTZero TIMETICKS GET)
111240233Sglebius                    (5 pfInterfacesIfRefsState NULL GET)
112143611Sphilip                    (6 pfInterfacesIfRefsRule UNSIGNED32 GET)
113143611Sphilip                    (7 pfInterfacesIf4BytesInPass COUNTER64 GET)
114143611Sphilip                    (8 pfInterfacesIf4BytesInBlock COUNTER64 GET)
115143611Sphilip                    (9 pfInterfacesIf4BytesOutPass COUNTER64 GET)
116143611Sphilip                    (10 pfInterfacesIf4BytesOutBlock COUNTER64 GET)
117143611Sphilip                    (11 pfInterfacesIf4PktsInPass COUNTER64 GET)
118143611Sphilip                    (12 pfInterfacesIf4PktsInBlock COUNTER64 GET)
119143611Sphilip                    (13 pfInterfacesIf4PktsOutPass COUNTER64 GET)
120143611Sphilip                    (14 pfInterfacesIf4PktsOutBlock COUNTER64 GET)
121143611Sphilip                    (15 pfInterfacesIf6BytesInPass COUNTER64 GET)
122143611Sphilip                    (16 pfInterfacesIf6BytesInBlock COUNTER64 GET)
123143611Sphilip                    (17 pfInterfacesIf6BytesOutPass COUNTER64 GET)
124143611Sphilip                    (18 pfInterfacesIf6BytesOutBlock COUNTER64 GET)
125143611Sphilip                    (19 pfInterfacesIf6PktsInPass COUNTER64 GET)
126143611Sphilip                    (20 pfInterfacesIf6PktsInBlock COUNTER64 GET)
127143611Sphilip                    (21 pfInterfacesIf6PktsOutPass COUNTER64 GET)
128143611Sphilip                    (22 pfInterfacesIf6PktsOutBlock COUNTER64 GET)
129143611Sphilip                  )
130143611Sphilip                )
131143611Sphilip              )
132143611Sphilip	      (9 pfTables
133143611Sphilip	        (1 pfTablesTblNumber INTEGER32 pf_tables GET)
134143611Sphilip		(2 pfTablesTblTable
135143611Sphilip		  (1 pfTablesTblEntry : INTEGER32 pf_tbltable
136143611Sphilip		    (1 pfTablesTblIndex INTEGER32)
137143611Sphilip		    (2 pfTablesTblDescr OCTETSTRING GET)
138143611Sphilip		    (3 pfTablesTblCount INTEGER32 GET)
139143611Sphilip		    (4 pfTablesTblTZero TIMETICKS GET)
140143611Sphilip		    (5 pfTablesTblRefsAnchor INTEGER32 GET)
141143611Sphilip		    (6 pfTablesTblRefsRule INTEGER32 GET)
142143611Sphilip		    (7 pfTablesTblEvalMatch COUNTER64 GET)
143143611Sphilip		    (8 pfTablesTblEvalNoMatch COUNTER64 GET)
144143611Sphilip		    (9 pfTablesTblBytesInPass COUNTER64 GET)
145143611Sphilip		    (10 pfTablesTblBytesInBlock COUNTER64 GET)
146143611Sphilip		    (11 pfTablesTblBytesInXPass COUNTER64 GET)
147143611Sphilip		    (12 pfTablesTblBytesOutPass COUNTER64 GET)
148143611Sphilip		    (13 pfTablesTblBytesOutBlock COUNTER64 GET)
149143611Sphilip		    (14 pfTablesTblBytesOutXPass COUNTER64 GET)
150143611Sphilip		    (15 pfTablesTblPktsInPass COUNTER64 GET)
151143611Sphilip		    (16 pfTablesTblPktsInBlock COUNTER64 GET)
152143611Sphilip		    (17 pfTablesTblPktsInXPass COUNTER64 GET)
153143611Sphilip		    (18 pfTablesTblPktsOutPass COUNTER64 GET)
154143611Sphilip		    (19 pfTablesTblPktsOutBlock COUNTER64 GET)
155143611Sphilip		    (20 pfTablesTblPktsOutXPass COUNTER64 GET)
156143611Sphilip		  )
157143611Sphilip		)
158143611Sphilip		(3 pfTablesAddrTable
159143611Sphilip		  (1 pfTablesAddrEntry : INTEGER32 pf_tbladdr
160143611Sphilip		    (1 pfTablesAddrIndex INTEGER32)
161205607Ssyrinx		    (2 pfTablesAddrNetType ENUM ( 0 unknown 1 ipv4 2 ipv6) GET)
162205607Ssyrinx		    (3 pfTablesAddrNet OCTETSTRING | InetAddress GET)
163205607Ssyrinx		    (4 pfTablesAddrPrefix UNSIGNED32 GET)
164205607Ssyrinx		    (5 pfTablesAddrTZero TIMETICKS GET)
165205607Ssyrinx		    (6 pfTablesAddrBytesInPass COUNTER64 GET)
166205607Ssyrinx		    (7 pfTablesAddrBytesInBlock COUNTER64 GET)
167205607Ssyrinx		    (8 pfTablesAddrBytesOutPass COUNTER64 GET)
168205607Ssyrinx		    (9 pfTablesAddrBytesOutBlock COUNTER64 GET)
169205607Ssyrinx		    (10 pfTablesAddrPktsInPass COUNTER64 GET)
170205607Ssyrinx		    (11 pfTablesAddrPktsInBlock COUNTER64 GET)
171205607Ssyrinx		    (12 pfTablesAddrPktsOutPass COUNTER64 GET)
172205607Ssyrinx		    (13 pfTablesAddrPktsOutBlock COUNTER64 GET)
173143611Sphilip		  )
174143611Sphilip		)
175143611Sphilip	      )
176143611Sphilip	      (10 pfAltq
177143611Sphilip	        (1 pfAltqQueueNumber INTEGER32 pf_altq GET)
178143611Sphilip		(2 pfAltqQueueTable
179143611Sphilip		  (1 pfAltqQueueEntry : INTEGER32 pf_altqq
180143611Sphilip		    (1 pfAltqQueueIndex INTEGER32)
181143611Sphilip		    (2 pfAltqQueueDescr OCTETSTRING GET)
182143611Sphilip		    (3 pfAltqQueueParent OCTETSTRING GET)
183205607Ssyrinx		    (4 pfAltqQueueScheduler ENUM ( 1 cbq 8 hfsc 11 priq ) GET)
184143611Sphilip		    (5 pfAltqQueueBandwidth UNSIGNED32 GET)
185143611Sphilip		    (6 pfAltqQueuePriority INTEGER32 GET)
186143611Sphilip		    (7 pfAltqQueueLimit INTEGER32 GET)
187143611Sphilip		  )
188143611Sphilip		)
189143611Sphilip	      )
190205280Ssyrinx	      (11 pfLabels
191205280Ssyrinx		(1 pfLabelsLblNumber INTEGER32 pf_labels GET)
192205280Ssyrinx		(2 pfLabelsLblTable
193205280Ssyrinx		  (1 pfLabelsLblEntry : INTEGER pf_lbltable
194205280Ssyrinx		    (1 pfLabelsLblIndex INTEGER)
195205280Ssyrinx		    (2 pfLabelsLblName OCTETSTRING GET)
196205280Ssyrinx		    (3 pfLabelsLblEvals COUNTER64 GET)
197205280Ssyrinx		    (4 pfLabelsLblBytesIn COUNTER64 GET)
198205280Ssyrinx		    (5 pfLabelsLblBytesOut COUNTER64 GET)
199205280Ssyrinx		    (6 pfLabelsLblPktsIn COUNTER64 GET)
200205280Ssyrinx		    (7 pfLabelsLblPktsOut COUNTER64 GET)
201205280Ssyrinx		  )
202205280Ssyrinx		)
203205280Ssyrinx	      )
204143611Sphilip            )
205143611Sphilip          )
206143611Sphilip        )
207143611Sphilip      )
208143611Sphilip    )
209143611Sphilip  )
210143611Sphilip)
211