]> git.stg.codes - stg.git/commitdiff
ASN.1 sources moved to library
authorMaxim Mamontov <faust.madf@gmail.com>
Tue, 26 Jul 2011 15:43:43 +0000 (18:43 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Tue, 26 Jul 2011 15:43:43 +0000 (18:43 +0300)
projects/stargazer/plugins/other/smux/asn1/Makefile [deleted file]
projects/stargazer/plugins/other/smux/asn1/RFC1155-SMI.asn1 [deleted file]
projects/stargazer/plugins/other/smux/asn1/RFC1157-SNMP.asn1 [deleted file]
projects/stargazer/plugins/other/smux/asn1/RFC1213-MIB.asn1 [deleted file]
projects/stargazer/plugins/other/smux/asn1/SMUX.asn1 [deleted file]
stglibs/smux.lib/RFC1155-SMI.asn1 [new file with mode: 0644]
stglibs/smux.lib/RFC1157-SNMP.asn1 [new file with mode: 0644]
stglibs/smux.lib/RFC1213-MIB.asn1 [new file with mode: 0644]
stglibs/smux.lib/SMUX.asn1 [new file with mode: 0644]

diff --git a/projects/stargazer/plugins/other/smux/asn1/Makefile b/projects/stargazer/plugins/other/smux/asn1/Makefile
deleted file mode 100644 (file)
index f1f0c87..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-ASN1_SOURCES = RFC1213-MIB.asn1 \
-              RFC1155-SMI.asn1 \
-              RFC1157-SNMP.asn1 \
-              SMUX.asn1
-
-asn1: $(ASN1_SOURCES)
-       asn1c -fskeletons-copy -fcompound-names $^
-       rm Makefile.am.sample
diff --git a/projects/stargazer/plugins/other/smux/asn1/RFC1155-SMI.asn1 b/projects/stargazer/plugins/other/smux/asn1/RFC1155-SMI.asn1
deleted file mode 100644 (file)
index 132e340..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-
--- WinAgents MIB Extraction Wizard\r
--- Extracted from rfc1155.txt 17.03.2005 16:16:50\r
-\r
-RFC1155-SMI DEFINITIONS ::= BEGIN\r
-\r
---EXPORTS  EVERYTHING\r
---        internet, directory, mgmt,\r
---        experimental, private, enterprises,\r
---        OBJECT-TYPE, ObjectName, ObjectSyntax, SimpleSyntax,\r
---        ApplicationSyntax, NetworkAddress, IpAddress,\r
---        Counter, Gauge, TimeTicks, Opaque;\r
-\r
- -- the path to the root\r
-\r
- internet      OBJECT IDENTIFIER ::= { iso org(3) dod(6) 1 }\r
-\r
- directory     OBJECT IDENTIFIER ::= { internet 1 }\r
-\r
- mgmt          OBJECT IDENTIFIER ::= { internet 2 }\r
-\r
- experimental  OBJECT IDENTIFIER ::= { internet 3 }\r
-\r
- private       OBJECT IDENTIFIER ::= { internet 4 }\r
- enterprises   OBJECT IDENTIFIER ::= { private 1 }\r
-\r
-\r
- -- definition of object types\r
-\r
--- MIB Extraction: All MACRO definitions are predefined by compiler\r
--- commented by MIB Extraction:  OBJECT-TYPE MACRO ::=\r
--- commented by MIB Extraction:  BEGIN\r
--- commented by MIB Extraction:      TYPE NOTATION ::= "SYNTAX" type (TYPE ObjectSyntax)\r
--- commented by MIB Extraction:                        "ACCESS" Access\r
--- commented by MIB Extraction:                        "STATUS" Status\r
--- commented by MIB Extraction:      VALUE NOTATION ::= value (VALUE ObjectName)\r
--- commented by MIB Extraction: \r
--- commented by MIB Extraction:      Access ::= "read-only"\r
--- commented by MIB Extraction:                      | "read-write"\r
--- commented by MIB Extraction:                      | "write-only"\r
--- commented by MIB Extraction:                      | "not-accessible"\r
--- commented by MIB Extraction:      Status ::= "mandatory"\r
--- commented by MIB Extraction:                      | "optional"\r
--- commented by MIB Extraction:                      | "obsolete"\r
--- commented by MIB Extraction:  END\r
-\r
-    -- names of objects in the MIB\r
-\r
-    ObjectName ::=\r
-        OBJECT IDENTIFIER\r
-\r
-\r
-    -- syntax of objects in the MIB\r
-\r
-    ObjectSyntax ::=\r
-        CHOICE {\r
-            simple\r
-                SimpleSyntax,\r
-\r
-    -- note that simple SEQUENCEs are not directly\r
-    -- mentioned here to keep things simple (i.e.,\r
-    -- prevent mis-use).  However, application-wide\r
-    -- types which are IMPLICITly encoded simple\r
-    -- SEQUENCEs may appear in the following CHOICE\r
-\r
-            application-wide\r
-                ApplicationSyntax\r
-        }\r
-\r
-       SimpleSyntax ::=\r
-           CHOICE {\r
-               number\r
-                   INTEGER,\r
-\r
-               string\r
-                   OCTET STRING,\r
-\r
-               object\r
-                   OBJECT IDENTIFIER,\r
-\r
-               empty\r
-                   NULL\r
-           }\r
-\r
-       ApplicationSyntax ::=\r
-           CHOICE {\r
-               address\r
-                   NetworkAddress,\r
-\r
-               counter\r
-                   Counter,\r
-\r
-               gauge\r
-                   Gauge,\r
-\r
-               ticks\r
-                   TimeTicks,\r
-\r
-               arbitrary\r
-                   Opaque\r
-\r
-       -- other application-wide types, as they are\r
-       -- defined, will be added here\r
-           }\r
-\r
-\r
-       -- application-wide types\r
-\r
-       NetworkAddress ::=\r
-           CHOICE {\r
-               internet\r
-                   IpAddress\r
-           }\r
-\r
-       IpAddress ::=\r
-           [APPLICATION 0]          -- in network-byte order\r
-               IMPLICIT OCTET STRING (SIZE (4))\r
-\r
-       Counter ::=\r
-           [APPLICATION 1]\r
-               IMPLICIT INTEGER (0..4294967295)\r
-\r
-       Gauge ::=\r
-           [APPLICATION 2]\r
-               IMPLICIT INTEGER (0..4294967295)\r
-\r
-       TimeTicks ::=\r
-           [APPLICATION 3]\r
-               IMPLICIT INTEGER (0..4294967295)\r
-\r
-       Opaque ::=\r
-           [APPLICATION 4]          -- arbitrary ASN.1 value,\r
-               IMPLICIT OCTET STRING   --   "double-wrapped"\r
-\r
-       END\r
diff --git a/projects/stargazer/plugins/other/smux/asn1/RFC1157-SNMP.asn1 b/projects/stargazer/plugins/other/smux/asn1/RFC1157-SNMP.asn1
deleted file mode 100644 (file)
index 166f7e7..0000000
+++ /dev/null
@@ -1,143 +0,0 @@
-
--- WinAgents MIB Extraction Wizard\r
--- Extracted from rfc1157.txt 16.03.2005 20:20:14\r
-\r
-RFC1157-SNMP DEFINITIONS ::= BEGIN\r
-\r
- IMPORTS\r
-     ObjectName, ObjectSyntax, NetworkAddress, IpAddress, TimeTicks\r
-         FROM RFC1155-SMI;\r
-\r
-\r
-     -- top-level message\r
-\r
-     Message ::=\r
-             SEQUENCE {\r
-                 version          -- version-1 for this RFC\r
-                     INTEGER {\r
-                         version-1(0)\r
-                     },\r
-\r
-                 community        -- community name\r
-                     OCTET STRING,\r
-\r
-                 data             -- e.g., PDUs if trivial\r
-                     ANY          -- authentication is being used\r
-             }\r
-\r
-\r
-     -- protocol data units\r
-\r
-     PDUs ::=\r
-             CHOICE {\r
-                         get-request\r
-                             GetRequest-PDU,\r
-\r
-                         get-next-request\r
-                             GetNextRequest-PDU,\r
-\r
-                         get-response\r
-                             GetResponse-PDU,\r
-\r
-                         set-request\r
-                             SetRequest-PDU,\r
-\r
-                         trap\r
-                             Trap-PDU\r
-                     }\r
-\r
-\r
-\r
-\r
-     -- PDUs\r
-\r
-     GetRequest-PDU ::=\r
-         [0]\r
-             IMPLICIT PDU\r
-\r
-     GetNextRequest-PDU ::=\r
-         [1]\r
-             IMPLICIT PDU\r
-\r
-     GetResponse-PDU ::=\r
-         [2]\r
-             IMPLICIT PDU\r
-\r
-     SetRequest-PDU ::=\r
-         [3]\r
-             IMPLICIT PDU\r
-\r
-     PDU ::=\r
-             SEQUENCE {\r
-                request-id\r
-                     INTEGER,\r
-\r
-                 error-status      -- sometimes ignored\r
-                     INTEGER {\r
-                         noError(0),\r
-                         tooBig(1),\r
-                         noSuchName(2),\r
-                         badValue(3),\r
-                         readOnly(4),\r
-                         genErr(5)\r
-                     },\r
-\r
-                 error-index       -- sometimes ignored\r
-                    INTEGER,\r
-\r
-                 variable-bindings -- values are sometimes ignored\r
-                     VarBindList\r
-             }\r
-\r
-     Trap-PDU ::=\r
-         [4]\r
-            IMPLICIT SEQUENCE {\r
-                 enterprise        -- type of object generating\r
-                                   -- trap, see sysObjectID in [5]\r
-\r
-\r
-                     OBJECT IDENTIFIER,\r
-\r
-                 agent-addr        -- address of object generating\r
-                     NetworkAddress, -- trap\r
-\r
-                 generic-trap      -- generic trap type\r
-                     INTEGER {\r
-                         coldStart(0),\r
-                         warmStart(1),\r
-                         linkDown(2),\r
-                         linkUp(3),\r
-                         authenticationFailure(4),\r
-                         egpNeighborLoss(5),\r
-                         enterpriseSpecific(6)\r
-                     },\r
-\r
-                 specific-trap  -- specific code, present even\r
-                     INTEGER,   -- if generic-trap is not\r
-                                -- enterpriseSpecific\r
-\r
-                 time-stamp     -- time elapsed between the last\r
-                     TimeTicks, -- (re)initialization of the  network\r
-                                -- entity and the generation of the trap\r
-\r
-                  variable-bindings -- "interesting" information\r
-                     VarBindList\r
-             }\r
-\r
-\r
-     -- variable bindings\r
-\r
-     VarBind ::=\r
-             SEQUENCE {\r
-                 name\r
-                     ObjectName,\r
-\r
-                 value\r
-                     ObjectSyntax\r
-             }\r
-\r
-    VarBindList ::=\r
-             SEQUENCE OF\r
-                VarBind\r
-\r
-    END
\ No newline at end of file
diff --git a/projects/stargazer/plugins/other/smux/asn1/RFC1213-MIB.asn1 b/projects/stargazer/plugins/other/smux/asn1/RFC1213-MIB.asn1
deleted file mode 100644 (file)
index b9b1e85..0000000
+++ /dev/null
@@ -1,339 +0,0 @@
-
--- WinAgents MIB Extraction Wizard\r
--- Extracted from rfc1213.txt 16.03.2005 20:20:14\r
-\r
-RFC1213-MIB DEFINITIONS ::= BEGIN\r
-\r
-IMPORTS\r
-        mgmt, NetworkAddress, IpAddress, Counter, Gauge,\r
-                TimeTicks\r
-            FROM RFC1155-SMI\r
-        OBJECT-TYPE\r
-                FROM RFC-1212;\r
-\r
---  This MIB module uses the extended OBJECT-TYPE macro as\r
---  defined in [14];\r
-\r
-\r
---  MIB-II (same prefix as MIB-I)\r
-\r
-mib-2      OBJECT IDENTIFIER ::= { mgmt 1 }\r
-\r
--- textual conventions\r
-\r
-DisplayString ::=\r
-    OCTET STRING\r
--- This data type is used to model textual information taken\r
--- from the NVT ASCII character set.  By convention, objects\r
--- with this syntax are declared as having\r
-\r
---\r
---      SIZE (0..255)\r
-\r
-PhysAddress ::=\r
-    OCTET STRING\r
--- This data type is used to model media addresses.  For many\r
--- types of media, this will be in a binary representation.\r
--- For example, an ethernet address would be represented as\r
--- a string of 6 octets.\r
-\r
-\r
--- groups in MIB-II\r
-\r
-system       OBJECT IDENTIFIER ::= { mib-2 1 }\r
-\r
-interfaces   OBJECT IDENTIFIER ::= { mib-2 2 }\r
-\r
-at           OBJECT IDENTIFIER ::= { mib-2 3 }\r
-\r
-ip           OBJECT IDENTIFIER ::= { mib-2 4 }\r
-\r
-icmp         OBJECT IDENTIFIER ::= { mib-2 5 }\r
-\r
-tcp          OBJECT IDENTIFIER ::= { mib-2 6 }\r
-\r
-udp          OBJECT IDENTIFIER ::= { mib-2 7 }\r
-\r
-egp          OBJECT IDENTIFIER ::= { mib-2 8 }\r
-\r
--- historical (some say hysterical)\r
--- cmot      OBJECT IDENTIFIER ::= { mib-2 9 }\r
-\r
-transmission OBJECT IDENTIFIER ::= { mib-2 10 }\r
-\r
-snmp         OBJECT IDENTIFIER ::= { mib-2 11 }\r
-\r
-\r
--- the System group\r
-\r
--- Implementation of the System group is mandatory for all\r
--- systems.  If an agent is not configured to have a value\r
--- for any of these variables, a string of length 0 is\r
--- returned.\r
-\r
-\r
-IfEntry ::=\r
-    SEQUENCE {\r
-        ifIndex\r
-            INTEGER,\r
-\r
-        ifDescr\r
-            DisplayString,\r
-        ifType\r
-            INTEGER,\r
-        ifMtu\r
-            INTEGER,\r
-        ifSpeed\r
-            Gauge,\r
-        ifPhysAddress\r
-            PhysAddress,\r
-        ifAdminStatus\r
-            INTEGER,\r
-        ifOperStatus\r
-            INTEGER,\r
-        ifLastChange\r
-            TimeTicks,\r
-        ifInOctets\r
-            Counter,\r
-        ifInUcastPkts\r
-            Counter,\r
-        ifInNUcastPkts\r
-            Counter,\r
-        ifInDiscards\r
-            Counter,\r
-        ifInErrors\r
-            Counter,\r
-        ifInUnknownProtos\r
-            Counter,\r
-        ifOutOctets\r
-            Counter,\r
-        ifOutUcastPkts\r
-            Counter,\r
-        ifOutNUcastPkts\r
-            Counter,\r
-        ifOutDiscards\r
-            Counter,\r
-        ifOutErrors\r
-            Counter,\r
-        ifOutQLen\r
-            Gauge,\r
-        ifSpecific\r
-            OBJECT IDENTIFIER\r
-    }\r
-\r
-\r
--- the Address Translation group\r
-\r
--- Implementation of the Address Translation group is\r
--- mandatory for all systems.  Note however that this group\r
--- is deprecated by MIB-II. That is, it is being included\r
-\r
--- solely for compatibility with MIB-I nodes, and will most\r
--- likely be excluded from MIB-III nodes.  From MIB-II and\r
--- onwards, each network protocol group contains its own\r
--- address translation tables.\r
-\r
--- The Address Translation group contains one table which is\r
--- the union across all interfaces of the translation tables\r
--- for converting a NetworkAddress (e.g., an IP address) into\r
--- a subnetwork-specific address.  For lack of a better term,\r
--- this document refers to such a subnetwork-specific address\r
--- as a `physical' address.\r
-\r
--- Examples of such translation tables are: for broadcast\r
--- media where ARP is in use, the translation table is\r
--- equivalent to the ARP cache; or, on an X.25 network where\r
--- non-algorithmic translation to X.121 addresses is\r
--- required, the translation table contains the\r
--- NetworkAddress to X.121 address equivalences.\r
-\r
-\r
-AtEntry ::=\r
-    SEQUENCE {\r
-        atIfIndex\r
-            INTEGER,\r
-\r
-        atPhysAddress\r
-            PhysAddress,\r
-        atNetAddress\r
-            NetworkAddress\r
-    }\r
-\r
-\r
-\r
-\r
-\r
--- the IP address table\r
-\r
--- The IP address table contains this entity's IP addressing\r
--- information.\r
-\r
-\r
-IpAddrEntry ::=\r
-    SEQUENCE {\r
-        ipAdEntAddr\r
-            IpAddress,\r
-        ipAdEntIfIndex\r
-            INTEGER,\r
-        ipAdEntNetMask\r
-            IpAddress,\r
-        ipAdEntBcastAddr\r
-            INTEGER,\r
-        ipAdEntReasmMaxSize\r
-            INTEGER (0..65535)\r
-    }\r
-\r
-\r
-IpRouteEntry ::=\r
-    SEQUENCE {\r
-        ipRouteDest\r
-            IpAddress,\r
-        ipRouteIfIndex\r
-            INTEGER,\r
-        ipRouteMetric1\r
-            INTEGER,\r
-        ipRouteMetric2\r
-            INTEGER,\r
-        ipRouteMetric3\r
-            INTEGER,\r
-        ipRouteMetric4\r
-            INTEGER,\r
-        ipRouteNextHop\r
-            IpAddress,\r
-        ipRouteType\r
-            INTEGER,\r
-        ipRouteProto\r
-            INTEGER,\r
-        ipRouteAge\r
-            INTEGER,\r
-        ipRouteMask\r
-            IpAddress,\r
-        ipRouteMetric5\r
-            INTEGER,\r
-\r
-        ipRouteInfo\r
-            OBJECT IDENTIFIER\r
-    }\r
-\r
-\r
-IpNetToMediaEntry ::=\r
-    SEQUENCE {\r
-        ipNetToMediaIfIndex\r
-            INTEGER,\r
-        ipNetToMediaPhysAddress\r
-            PhysAddress,\r
-        ipNetToMediaNetAddress\r
-            IpAddress,\r
-        ipNetToMediaType\r
-            INTEGER\r
-    }\r
-\r
-\r
-\r
-TcpConnEntry ::=\r
-    SEQUENCE {\r
-        tcpConnState\r
-            INTEGER,\r
-        tcpConnLocalAddress\r
-            IpAddress,\r
-        tcpConnLocalPort\r
-            INTEGER (0..65535),\r
-        tcpConnRemAddress\r
-            IpAddress,\r
-        tcpConnRemPort\r
-            INTEGER (0..65535)\r
-    }\r
-\r
-\r
-UdpEntry ::=\r
-    SEQUENCE {\r
-        udpLocalAddress\r
-            IpAddress,\r
-        udpLocalPort\r
-            INTEGER (0..65535)\r
-    }\r
-\r
-\r
-\r
--- the EGP Neighbor table\r
-\r
--- The EGP neighbor table contains information about this\r
--- entity's EGP neighbors.\r
-\r
-\r
-EgpNeighEntry ::=\r
-    SEQUENCE {\r
-        egpNeighState\r
-            INTEGER,\r
-        egpNeighAddr\r
-            IpAddress,\r
-        egpNeighAs\r
-            INTEGER,\r
-        egpNeighInMsgs\r
-            Counter,\r
-        egpNeighInErrs\r
-            Counter,\r
-        egpNeighOutMsgs\r
-            Counter,\r
-        egpNeighOutErrs\r
-            Counter,\r
-\r
-        egpNeighInErrMsgs\r
-            Counter,\r
-        egpNeighOutErrMsgs\r
-            Counter,\r
-        egpNeighStateUps\r
-            Counter,\r
-        egpNeighStateDowns\r
-            Counter,\r
-        egpNeighIntervalHello\r
-            INTEGER,\r
-        egpNeighIntervalPoll\r
-            INTEGER,\r
-        egpNeighMode\r
-            INTEGER,\r
-        egpNeighEventTrigger\r
-            INTEGER\r
-    }\r
-\r
-\r
-\r
--- the Transmission group\r
-\r
--- Based on the transmission media underlying each interface\r
--- on a system, the corresponding portion of the Transmission\r
--- group is mandatory for that system.\r
-\r
--- When Internet-standard definitions for managing\r
--- transmission media are defined, the transmission group is\r
--- used to provide a prefix for the names of those objects.\r
-\r
--- Typically, such definitions reside in the experimental\r
--- portion of the MIB until they are "proven", then as a\r
--- part of the Internet standardization process, the\r
--- definitions are accordingly elevated and a new object\r
--- identifier, under the transmission group is defined. By\r
--- convention, the name assigned is:\r
---\r
---     type OBJECT IDENTIFIER    ::= { transmission number }\r
---\r
--- where "type" is the symbolic value used for the media in\r
--- the ifType column of the ifTable object, and "number" is\r
--- the actual integer value corresponding to the symbol.\r
-\r
-\r
--- the SNMP group\r
-\r
--- Implementation of the SNMP group is mandatory for all\r
--- systems which support an SNMP protocol entity.  Some of\r
--- the objects defined below will be zero-valued in those\r
--- SNMP implementations that are optimized to support only\r
--- those functions specific to either a management agent or\r
--- a management station.  In particular, it should be\r
--- observed that the objects below refer to an SNMP entity,\r
--- and there may be several SNMP entities residing on a\r
--- managed node (e.g., if the node is hosting acting as\r
--- a management station).\r
-\r
-\r
-END\r
diff --git a/projects/stargazer/plugins/other/smux/asn1/SMUX.asn1 b/projects/stargazer/plugins/other/smux/asn1/SMUX.asn1
deleted file mode 100644 (file)
index af7748f..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-
--- WinAgents MIB Extraction Wizard\r
--- Extracted from rfc1227.txt 16.03.2005 20:20:14\r
-\r
-SMUX DEFINITIONS ::= BEGIN\r
-\r
-IMPORTS\r
-        ObjectName\r
-                FROM RFC1155-SMI\r
-        DisplayString\r
-                FROM RFC1213-MIB\r
-\r
-        PDUs\r
-                FROM RFC1157-SNMP;\r
-\r
-\r
--- tags for SMUX-specific PDUs are application-wide to\r
--- avoid conflict with tags for current (and future)\r
--- SNMP-generic PDUs\r
-\r
-SMUX-PDUs ::=\r
-    CHOICE {\r
-        open            -- SMUX peer uses\r
-            OpenPDU,    -- immediately after TCP open\r
-\r
-        close           -- either uses immediately before TCP close\r
-            ClosePDU,\r
-\r
-        registerRequest -- SMUX peer uses\r
-            RReqPDU,\r
-\r
-        registerResponse -- SNMP agent uses\r
-            RRspPDU,\r
-\r
-            PDUs,       -- note that roles are reversed:\r
-                        --   SNMP agent does get/get-next/set\r
-                        --   SMUX peer does get-response/trap\r
-\r
-        commitOrRollback -- SNMP agent uses\r
-            SOutPDU\r
-   }\r
-\r
-\r
--- open PDU\r
--- currently only simple authentication\r
-\r
-OpenPDU ::=\r
-    CHOICE {\r
-       simple\r
-\r
-           SimpleOpen\r
-    }\r
-\r
-SimpleOpen ::=\r
-    [APPLICATION 0] IMPLICIT\r
-        SEQUENCE {\r
-            version     -- of SMUX protocol\r
-                INTEGER {\r
-                    version-1(0)\r
-                },\r
-\r
-            identity    -- of SMUX peer, authoritative\r
-                OBJECT IDENTIFIER,\r
-\r
-            description -- of SMUX peer, implementation-specific\r
-                DisplayString,\r
-\r
-            password    -- zero length indicates no authentication\r
-                OCTET STRING\r
-        }\r
-\r
-\r
--- close PDU\r
-\r
-ClosePDU ::=\r
-    [APPLICATION 1] IMPLICIT\r
-        INTEGER {\r
-            goingDown(0),\r
-            unsupportedVersion(1),\r
-            packetFormat(2),\r
-            protocolError(3),\r
-            internalError(4),\r
-            authenticationFailure(5)\r
-        }\r
-\r
-\r
--- insert PDU\r
-\r
-RReqPDU ::=\r
-    [APPLICATION 2] IMPLICIT\r
-        SEQUENCE {\r
-            subtree\r
-                ObjectName,\r
-\r
-            priority    -- the lower the better, "-1" means default\r
-                INTEGER (-1..2147483647),\r
-\r
-            operation\r
-\r
-                INTEGER {\r
-                    delete(0),    -- remove registration\r
-                    readOnly(1),  -- add registration, objects are RO\r
-                    readWrite(2)  --   .., objects are RW\r
-                }\r
-        }\r
-\r
-RRspPDU ::=\r
-    [APPLICATION 3] IMPLICIT\r
-        INTEGER {\r
-            failure(-1)\r
-\r
-           -- on success the non-negative priority is returned\r
-        }\r
-\r
-SOutPDU ::=\r
-    [APPLICATION 4] IMPLICIT\r
-        INTEGER {\r
-            commit(0),\r
-            rollback(1)\r
-        }\r
-\r
-END
\ No newline at end of file
diff --git a/stglibs/smux.lib/RFC1155-SMI.asn1 b/stglibs/smux.lib/RFC1155-SMI.asn1
new file mode 100644 (file)
index 0000000..132e340
--- /dev/null
@@ -0,0 +1,135 @@
+
+-- WinAgents MIB Extraction Wizard\r
+-- Extracted from rfc1155.txt 17.03.2005 16:16:50\r
+\r
+RFC1155-SMI DEFINITIONS ::= BEGIN\r
+\r
+--EXPORTS  EVERYTHING\r
+--        internet, directory, mgmt,\r
+--        experimental, private, enterprises,\r
+--        OBJECT-TYPE, ObjectName, ObjectSyntax, SimpleSyntax,\r
+--        ApplicationSyntax, NetworkAddress, IpAddress,\r
+--        Counter, Gauge, TimeTicks, Opaque;\r
+\r
+ -- the path to the root\r
+\r
+ internet      OBJECT IDENTIFIER ::= { iso org(3) dod(6) 1 }\r
+\r
+ directory     OBJECT IDENTIFIER ::= { internet 1 }\r
+\r
+ mgmt          OBJECT IDENTIFIER ::= { internet 2 }\r
+\r
+ experimental  OBJECT IDENTIFIER ::= { internet 3 }\r
+\r
+ private       OBJECT IDENTIFIER ::= { internet 4 }\r
+ enterprises   OBJECT IDENTIFIER ::= { private 1 }\r
+\r
+\r
+ -- definition of object types\r
+\r
+-- MIB Extraction: All MACRO definitions are predefined by compiler\r
+-- commented by MIB Extraction:  OBJECT-TYPE MACRO ::=\r
+-- commented by MIB Extraction:  BEGIN\r
+-- commented by MIB Extraction:      TYPE NOTATION ::= "SYNTAX" type (TYPE ObjectSyntax)\r
+-- commented by MIB Extraction:                        "ACCESS" Access\r
+-- commented by MIB Extraction:                        "STATUS" Status\r
+-- commented by MIB Extraction:      VALUE NOTATION ::= value (VALUE ObjectName)\r
+-- commented by MIB Extraction: \r
+-- commented by MIB Extraction:      Access ::= "read-only"\r
+-- commented by MIB Extraction:                      | "read-write"\r
+-- commented by MIB Extraction:                      | "write-only"\r
+-- commented by MIB Extraction:                      | "not-accessible"\r
+-- commented by MIB Extraction:      Status ::= "mandatory"\r
+-- commented by MIB Extraction:                      | "optional"\r
+-- commented by MIB Extraction:                      | "obsolete"\r
+-- commented by MIB Extraction:  END\r
+\r
+    -- names of objects in the MIB\r
+\r
+    ObjectName ::=\r
+        OBJECT IDENTIFIER\r
+\r
+\r
+    -- syntax of objects in the MIB\r
+\r
+    ObjectSyntax ::=\r
+        CHOICE {\r
+            simple\r
+                SimpleSyntax,\r
+\r
+    -- note that simple SEQUENCEs are not directly\r
+    -- mentioned here to keep things simple (i.e.,\r
+    -- prevent mis-use).  However, application-wide\r
+    -- types which are IMPLICITly encoded simple\r
+    -- SEQUENCEs may appear in the following CHOICE\r
+\r
+            application-wide\r
+                ApplicationSyntax\r
+        }\r
+\r
+       SimpleSyntax ::=\r
+           CHOICE {\r
+               number\r
+                   INTEGER,\r
+\r
+               string\r
+                   OCTET STRING,\r
+\r
+               object\r
+                   OBJECT IDENTIFIER,\r
+\r
+               empty\r
+                   NULL\r
+           }\r
+\r
+       ApplicationSyntax ::=\r
+           CHOICE {\r
+               address\r
+                   NetworkAddress,\r
+\r
+               counter\r
+                   Counter,\r
+\r
+               gauge\r
+                   Gauge,\r
+\r
+               ticks\r
+                   TimeTicks,\r
+\r
+               arbitrary\r
+                   Opaque\r
+\r
+       -- other application-wide types, as they are\r
+       -- defined, will be added here\r
+           }\r
+\r
+\r
+       -- application-wide types\r
+\r
+       NetworkAddress ::=\r
+           CHOICE {\r
+               internet\r
+                   IpAddress\r
+           }\r
+\r
+       IpAddress ::=\r
+           [APPLICATION 0]          -- in network-byte order\r
+               IMPLICIT OCTET STRING (SIZE (4))\r
+\r
+       Counter ::=\r
+           [APPLICATION 1]\r
+               IMPLICIT INTEGER (0..4294967295)\r
+\r
+       Gauge ::=\r
+           [APPLICATION 2]\r
+               IMPLICIT INTEGER (0..4294967295)\r
+\r
+       TimeTicks ::=\r
+           [APPLICATION 3]\r
+               IMPLICIT INTEGER (0..4294967295)\r
+\r
+       Opaque ::=\r
+           [APPLICATION 4]          -- arbitrary ASN.1 value,\r
+               IMPLICIT OCTET STRING   --   "double-wrapped"\r
+\r
+       END\r
diff --git a/stglibs/smux.lib/RFC1157-SNMP.asn1 b/stglibs/smux.lib/RFC1157-SNMP.asn1
new file mode 100644 (file)
index 0000000..166f7e7
--- /dev/null
@@ -0,0 +1,143 @@
+
+-- WinAgents MIB Extraction Wizard\r
+-- Extracted from rfc1157.txt 16.03.2005 20:20:14\r
+\r
+RFC1157-SNMP DEFINITIONS ::= BEGIN\r
+\r
+ IMPORTS\r
+     ObjectName, ObjectSyntax, NetworkAddress, IpAddress, TimeTicks\r
+         FROM RFC1155-SMI;\r
+\r
+\r
+     -- top-level message\r
+\r
+     Message ::=\r
+             SEQUENCE {\r
+                 version          -- version-1 for this RFC\r
+                     INTEGER {\r
+                         version-1(0)\r
+                     },\r
+\r
+                 community        -- community name\r
+                     OCTET STRING,\r
+\r
+                 data             -- e.g., PDUs if trivial\r
+                     ANY          -- authentication is being used\r
+             }\r
+\r
+\r
+     -- protocol data units\r
+\r
+     PDUs ::=\r
+             CHOICE {\r
+                         get-request\r
+                             GetRequest-PDU,\r
+\r
+                         get-next-request\r
+                             GetNextRequest-PDU,\r
+\r
+                         get-response\r
+                             GetResponse-PDU,\r
+\r
+                         set-request\r
+                             SetRequest-PDU,\r
+\r
+                         trap\r
+                             Trap-PDU\r
+                     }\r
+\r
+\r
+\r
+\r
+     -- PDUs\r
+\r
+     GetRequest-PDU ::=\r
+         [0]\r
+             IMPLICIT PDU\r
+\r
+     GetNextRequest-PDU ::=\r
+         [1]\r
+             IMPLICIT PDU\r
+\r
+     GetResponse-PDU ::=\r
+         [2]\r
+             IMPLICIT PDU\r
+\r
+     SetRequest-PDU ::=\r
+         [3]\r
+             IMPLICIT PDU\r
+\r
+     PDU ::=\r
+             SEQUENCE {\r
+                request-id\r
+                     INTEGER,\r
+\r
+                 error-status      -- sometimes ignored\r
+                     INTEGER {\r
+                         noError(0),\r
+                         tooBig(1),\r
+                         noSuchName(2),\r
+                         badValue(3),\r
+                         readOnly(4),\r
+                         genErr(5)\r
+                     },\r
+\r
+                 error-index       -- sometimes ignored\r
+                    INTEGER,\r
+\r
+                 variable-bindings -- values are sometimes ignored\r
+                     VarBindList\r
+             }\r
+\r
+     Trap-PDU ::=\r
+         [4]\r
+            IMPLICIT SEQUENCE {\r
+                 enterprise        -- type of object generating\r
+                                   -- trap, see sysObjectID in [5]\r
+\r
+\r
+                     OBJECT IDENTIFIER,\r
+\r
+                 agent-addr        -- address of object generating\r
+                     NetworkAddress, -- trap\r
+\r
+                 generic-trap      -- generic trap type\r
+                     INTEGER {\r
+                         coldStart(0),\r
+                         warmStart(1),\r
+                         linkDown(2),\r
+                         linkUp(3),\r
+                         authenticationFailure(4),\r
+                         egpNeighborLoss(5),\r
+                         enterpriseSpecific(6)\r
+                     },\r
+\r
+                 specific-trap  -- specific code, present even\r
+                     INTEGER,   -- if generic-trap is not\r
+                                -- enterpriseSpecific\r
+\r
+                 time-stamp     -- time elapsed between the last\r
+                     TimeTicks, -- (re)initialization of the  network\r
+                                -- entity and the generation of the trap\r
+\r
+                  variable-bindings -- "interesting" information\r
+                     VarBindList\r
+             }\r
+\r
+\r
+     -- variable bindings\r
+\r
+     VarBind ::=\r
+             SEQUENCE {\r
+                 name\r
+                     ObjectName,\r
+\r
+                 value\r
+                     ObjectSyntax\r
+             }\r
+\r
+    VarBindList ::=\r
+             SEQUENCE OF\r
+                VarBind\r
+\r
+    END
\ No newline at end of file
diff --git a/stglibs/smux.lib/RFC1213-MIB.asn1 b/stglibs/smux.lib/RFC1213-MIB.asn1
new file mode 100644 (file)
index 0000000..b9b1e85
--- /dev/null
@@ -0,0 +1,339 @@
+
+-- WinAgents MIB Extraction Wizard\r
+-- Extracted from rfc1213.txt 16.03.2005 20:20:14\r
+\r
+RFC1213-MIB DEFINITIONS ::= BEGIN\r
+\r
+IMPORTS\r
+        mgmt, NetworkAddress, IpAddress, Counter, Gauge,\r
+                TimeTicks\r
+            FROM RFC1155-SMI\r
+        OBJECT-TYPE\r
+                FROM RFC-1212;\r
+\r
+--  This MIB module uses the extended OBJECT-TYPE macro as\r
+--  defined in [14];\r
+\r
+\r
+--  MIB-II (same prefix as MIB-I)\r
+\r
+mib-2      OBJECT IDENTIFIER ::= { mgmt 1 }\r
+\r
+-- textual conventions\r
+\r
+DisplayString ::=\r
+    OCTET STRING\r
+-- This data type is used to model textual information taken\r
+-- from the NVT ASCII character set.  By convention, objects\r
+-- with this syntax are declared as having\r
+\r
+--\r
+--      SIZE (0..255)\r
+\r
+PhysAddress ::=\r
+    OCTET STRING\r
+-- This data type is used to model media addresses.  For many\r
+-- types of media, this will be in a binary representation.\r
+-- For example, an ethernet address would be represented as\r
+-- a string of 6 octets.\r
+\r
+\r
+-- groups in MIB-II\r
+\r
+system       OBJECT IDENTIFIER ::= { mib-2 1 }\r
+\r
+interfaces   OBJECT IDENTIFIER ::= { mib-2 2 }\r
+\r
+at           OBJECT IDENTIFIER ::= { mib-2 3 }\r
+\r
+ip           OBJECT IDENTIFIER ::= { mib-2 4 }\r
+\r
+icmp         OBJECT IDENTIFIER ::= { mib-2 5 }\r
+\r
+tcp          OBJECT IDENTIFIER ::= { mib-2 6 }\r
+\r
+udp          OBJECT IDENTIFIER ::= { mib-2 7 }\r
+\r
+egp          OBJECT IDENTIFIER ::= { mib-2 8 }\r
+\r
+-- historical (some say hysterical)\r
+-- cmot      OBJECT IDENTIFIER ::= { mib-2 9 }\r
+\r
+transmission OBJECT IDENTIFIER ::= { mib-2 10 }\r
+\r
+snmp         OBJECT IDENTIFIER ::= { mib-2 11 }\r
+\r
+\r
+-- the System group\r
+\r
+-- Implementation of the System group is mandatory for all\r
+-- systems.  If an agent is not configured to have a value\r
+-- for any of these variables, a string of length 0 is\r
+-- returned.\r
+\r
+\r
+IfEntry ::=\r
+    SEQUENCE {\r
+        ifIndex\r
+            INTEGER,\r
+\r
+        ifDescr\r
+            DisplayString,\r
+        ifType\r
+            INTEGER,\r
+        ifMtu\r
+            INTEGER,\r
+        ifSpeed\r
+            Gauge,\r
+        ifPhysAddress\r
+            PhysAddress,\r
+        ifAdminStatus\r
+            INTEGER,\r
+        ifOperStatus\r
+            INTEGER,\r
+        ifLastChange\r
+            TimeTicks,\r
+        ifInOctets\r
+            Counter,\r
+        ifInUcastPkts\r
+            Counter,\r
+        ifInNUcastPkts\r
+            Counter,\r
+        ifInDiscards\r
+            Counter,\r
+        ifInErrors\r
+            Counter,\r
+        ifInUnknownProtos\r
+            Counter,\r
+        ifOutOctets\r
+            Counter,\r
+        ifOutUcastPkts\r
+            Counter,\r
+        ifOutNUcastPkts\r
+            Counter,\r
+        ifOutDiscards\r
+            Counter,\r
+        ifOutErrors\r
+            Counter,\r
+        ifOutQLen\r
+            Gauge,\r
+        ifSpecific\r
+            OBJECT IDENTIFIER\r
+    }\r
+\r
+\r
+-- the Address Translation group\r
+\r
+-- Implementation of the Address Translation group is\r
+-- mandatory for all systems.  Note however that this group\r
+-- is deprecated by MIB-II. That is, it is being included\r
+\r
+-- solely for compatibility with MIB-I nodes, and will most\r
+-- likely be excluded from MIB-III nodes.  From MIB-II and\r
+-- onwards, each network protocol group contains its own\r
+-- address translation tables.\r
+\r
+-- The Address Translation group contains one table which is\r
+-- the union across all interfaces of the translation tables\r
+-- for converting a NetworkAddress (e.g., an IP address) into\r
+-- a subnetwork-specific address.  For lack of a better term,\r
+-- this document refers to such a subnetwork-specific address\r
+-- as a `physical' address.\r
+\r
+-- Examples of such translation tables are: for broadcast\r
+-- media where ARP is in use, the translation table is\r
+-- equivalent to the ARP cache; or, on an X.25 network where\r
+-- non-algorithmic translation to X.121 addresses is\r
+-- required, the translation table contains the\r
+-- NetworkAddress to X.121 address equivalences.\r
+\r
+\r
+AtEntry ::=\r
+    SEQUENCE {\r
+        atIfIndex\r
+            INTEGER,\r
+\r
+        atPhysAddress\r
+            PhysAddress,\r
+        atNetAddress\r
+            NetworkAddress\r
+    }\r
+\r
+\r
+\r
+\r
+\r
+-- the IP address table\r
+\r
+-- The IP address table contains this entity's IP addressing\r
+-- information.\r
+\r
+\r
+IpAddrEntry ::=\r
+    SEQUENCE {\r
+        ipAdEntAddr\r
+            IpAddress,\r
+        ipAdEntIfIndex\r
+            INTEGER,\r
+        ipAdEntNetMask\r
+            IpAddress,\r
+        ipAdEntBcastAddr\r
+            INTEGER,\r
+        ipAdEntReasmMaxSize\r
+            INTEGER (0..65535)\r
+    }\r
+\r
+\r
+IpRouteEntry ::=\r
+    SEQUENCE {\r
+        ipRouteDest\r
+            IpAddress,\r
+        ipRouteIfIndex\r
+            INTEGER,\r
+        ipRouteMetric1\r
+            INTEGER,\r
+        ipRouteMetric2\r
+            INTEGER,\r
+        ipRouteMetric3\r
+            INTEGER,\r
+        ipRouteMetric4\r
+            INTEGER,\r
+        ipRouteNextHop\r
+            IpAddress,\r
+        ipRouteType\r
+            INTEGER,\r
+        ipRouteProto\r
+            INTEGER,\r
+        ipRouteAge\r
+            INTEGER,\r
+        ipRouteMask\r
+            IpAddress,\r
+        ipRouteMetric5\r
+            INTEGER,\r
+\r
+        ipRouteInfo\r
+            OBJECT IDENTIFIER\r
+    }\r
+\r
+\r
+IpNetToMediaEntry ::=\r
+    SEQUENCE {\r
+        ipNetToMediaIfIndex\r
+            INTEGER,\r
+        ipNetToMediaPhysAddress\r
+            PhysAddress,\r
+        ipNetToMediaNetAddress\r
+            IpAddress,\r
+        ipNetToMediaType\r
+            INTEGER\r
+    }\r
+\r
+\r
+\r
+TcpConnEntry ::=\r
+    SEQUENCE {\r
+        tcpConnState\r
+            INTEGER,\r
+        tcpConnLocalAddress\r
+            IpAddress,\r
+        tcpConnLocalPort\r
+            INTEGER (0..65535),\r
+        tcpConnRemAddress\r
+            IpAddress,\r
+        tcpConnRemPort\r
+            INTEGER (0..65535)\r
+    }\r
+\r
+\r
+UdpEntry ::=\r
+    SEQUENCE {\r
+        udpLocalAddress\r
+            IpAddress,\r
+        udpLocalPort\r
+            INTEGER (0..65535)\r
+    }\r
+\r
+\r
+\r
+-- the EGP Neighbor table\r
+\r
+-- The EGP neighbor table contains information about this\r
+-- entity's EGP neighbors.\r
+\r
+\r
+EgpNeighEntry ::=\r
+    SEQUENCE {\r
+        egpNeighState\r
+            INTEGER,\r
+        egpNeighAddr\r
+            IpAddress,\r
+        egpNeighAs\r
+            INTEGER,\r
+        egpNeighInMsgs\r
+            Counter,\r
+        egpNeighInErrs\r
+            Counter,\r
+        egpNeighOutMsgs\r
+            Counter,\r
+        egpNeighOutErrs\r
+            Counter,\r
+\r
+        egpNeighInErrMsgs\r
+            Counter,\r
+        egpNeighOutErrMsgs\r
+            Counter,\r
+        egpNeighStateUps\r
+            Counter,\r
+        egpNeighStateDowns\r
+            Counter,\r
+        egpNeighIntervalHello\r
+            INTEGER,\r
+        egpNeighIntervalPoll\r
+            INTEGER,\r
+        egpNeighMode\r
+            INTEGER,\r
+        egpNeighEventTrigger\r
+            INTEGER\r
+    }\r
+\r
+\r
+\r
+-- the Transmission group\r
+\r
+-- Based on the transmission media underlying each interface\r
+-- on a system, the corresponding portion of the Transmission\r
+-- group is mandatory for that system.\r
+\r
+-- When Internet-standard definitions for managing\r
+-- transmission media are defined, the transmission group is\r
+-- used to provide a prefix for the names of those objects.\r
+\r
+-- Typically, such definitions reside in the experimental\r
+-- portion of the MIB until they are "proven", then as a\r
+-- part of the Internet standardization process, the\r
+-- definitions are accordingly elevated and a new object\r
+-- identifier, under the transmission group is defined. By\r
+-- convention, the name assigned is:\r
+--\r
+--     type OBJECT IDENTIFIER    ::= { transmission number }\r
+--\r
+-- where "type" is the symbolic value used for the media in\r
+-- the ifType column of the ifTable object, and "number" is\r
+-- the actual integer value corresponding to the symbol.\r
+\r
+\r
+-- the SNMP group\r
+\r
+-- Implementation of the SNMP group is mandatory for all\r
+-- systems which support an SNMP protocol entity.  Some of\r
+-- the objects defined below will be zero-valued in those\r
+-- SNMP implementations that are optimized to support only\r
+-- those functions specific to either a management agent or\r
+-- a management station.  In particular, it should be\r
+-- observed that the objects below refer to an SNMP entity,\r
+-- and there may be several SNMP entities residing on a\r
+-- managed node (e.g., if the node is hosting acting as\r
+-- a management station).\r
+\r
+\r
+END\r
diff --git a/stglibs/smux.lib/SMUX.asn1 b/stglibs/smux.lib/SMUX.asn1
new file mode 100644 (file)
index 0000000..af7748f
--- /dev/null
@@ -0,0 +1,122 @@
+
+-- WinAgents MIB Extraction Wizard\r
+-- Extracted from rfc1227.txt 16.03.2005 20:20:14\r
+\r
+SMUX DEFINITIONS ::= BEGIN\r
+\r
+IMPORTS\r
+        ObjectName\r
+                FROM RFC1155-SMI\r
+        DisplayString\r
+                FROM RFC1213-MIB\r
+\r
+        PDUs\r
+                FROM RFC1157-SNMP;\r
+\r
+\r
+-- tags for SMUX-specific PDUs are application-wide to\r
+-- avoid conflict with tags for current (and future)\r
+-- SNMP-generic PDUs\r
+\r
+SMUX-PDUs ::=\r
+    CHOICE {\r
+        open            -- SMUX peer uses\r
+            OpenPDU,    -- immediately after TCP open\r
+\r
+        close           -- either uses immediately before TCP close\r
+            ClosePDU,\r
+\r
+        registerRequest -- SMUX peer uses\r
+            RReqPDU,\r
+\r
+        registerResponse -- SNMP agent uses\r
+            RRspPDU,\r
+\r
+            PDUs,       -- note that roles are reversed:\r
+                        --   SNMP agent does get/get-next/set\r
+                        --   SMUX peer does get-response/trap\r
+\r
+        commitOrRollback -- SNMP agent uses\r
+            SOutPDU\r
+   }\r
+\r
+\r
+-- open PDU\r
+-- currently only simple authentication\r
+\r
+OpenPDU ::=\r
+    CHOICE {\r
+       simple\r
+\r
+           SimpleOpen\r
+    }\r
+\r
+SimpleOpen ::=\r
+    [APPLICATION 0] IMPLICIT\r
+        SEQUENCE {\r
+            version     -- of SMUX protocol\r
+                INTEGER {\r
+                    version-1(0)\r
+                },\r
+\r
+            identity    -- of SMUX peer, authoritative\r
+                OBJECT IDENTIFIER,\r
+\r
+            description -- of SMUX peer, implementation-specific\r
+                DisplayString,\r
+\r
+            password    -- zero length indicates no authentication\r
+                OCTET STRING\r
+        }\r
+\r
+\r
+-- close PDU\r
+\r
+ClosePDU ::=\r
+    [APPLICATION 1] IMPLICIT\r
+        INTEGER {\r
+            goingDown(0),\r
+            unsupportedVersion(1),\r
+            packetFormat(2),\r
+            protocolError(3),\r
+            internalError(4),\r
+            authenticationFailure(5)\r
+        }\r
+\r
+\r
+-- insert PDU\r
+\r
+RReqPDU ::=\r
+    [APPLICATION 2] IMPLICIT\r
+        SEQUENCE {\r
+            subtree\r
+                ObjectName,\r
+\r
+            priority    -- the lower the better, "-1" means default\r
+                INTEGER (-1..2147483647),\r
+\r
+            operation\r
+\r
+                INTEGER {\r
+                    delete(0),    -- remove registration\r
+                    readOnly(1),  -- add registration, objects are RO\r
+                    readWrite(2)  --   .., objects are RW\r
+                }\r
+        }\r
+\r
+RRspPDU ::=\r
+    [APPLICATION 3] IMPLICIT\r
+        INTEGER {\r
+            failure(-1)\r
+\r
+           -- on success the non-negative priority is returned\r
+        }\r
+\r
+SOutPDU ::=\r
+    [APPLICATION 4] IMPLICIT\r
+        INTEGER {\r
+            commit(0),\r
+            rollback(1)\r
+        }\r
+\r
+END
\ No newline at end of file