net/ipv4/netfilter/nf_nat_snmp_basic.asn1

Source file repositories/reference/linux-study-clean/net/ipv4/netfilter/nf_nat_snmp_basic.asn1

File Facts

System
Linux kernel
Corpus path
net/ipv4/netfilter/nf_nat_snmp_basic.asn1
Extension
.asn1
Size
2385 bytes
Lines
186
Domain
Networking Core
Bucket
Sockets, Protocols, Packet Path, And Network Policy
Inferred role
Networking Core: Sockets, Protocols, Packet Path, And Network Policy
Status
atlas-only

Why This File Exists

Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.

Dependency Surface

Detected Declarations

Annotated Snippet

-- SPDX-License-Identifier: BSD-3-Clause
--
-- Copyright (C) 1990, 2002 IETF Trust and the persons identified as authors
-- of the code
--
-- https://www.rfc-editor.org/rfc/rfc1157#section-4
-- https://www.rfc-editor.org/rfc/rfc3416#section-3

Message ::=
	SEQUENCE {
		version
			INTEGER ({snmp_version}),

		community
			OCTET STRING,

		pdu
			PDUs
	}


ObjectName ::=
	OBJECT IDENTIFIER

ObjectSyntax ::=
	CHOICE {
		simple
			SimpleSyntax,

		application-wide
			ApplicationSyntax
	}

SimpleSyntax ::=
	CHOICE {
		integer-value
			INTEGER,

		string-value
			OCTET STRING,

		objectID-value
			OBJECT IDENTIFIER
	}

ApplicationSyntax ::=
	CHOICE {
		ipAddress-value
			IpAddress,

		counter-value
			Counter32,

		timeticks-value
			TimeTicks,

		arbitrary-value
			Opaque,

		big-counter-value
			Counter64,

		unsigned-integer-value
			Unsigned32
	}

IpAddress ::=
	[APPLICATION 0]
		IMPLICIT OCTET STRING OPTIONAL ({snmp_helper})

Annotation

Implementation Notes