Something went wrong. Try again.
An SNMP manager library and command line tools for Zig, covering versions 1, 2c and 3.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us>// SPDX-License-Identifier: MIT
//! An SNMP manager for Zig: versions 1, 2c and 3 on the wire, with the//! command line tools net-snmp's are named after on top of it.
const std = @import("std");const testing = std.testing;
pub const asn1 = @import("asn1");
/// Re-exported because they appear in this library's public API: a/// `Value.ip_address` *is* a `z46.Ipv4Address` and `Value.asMacAddress`/// returns a `macaddress.MacAddress`, so a caller cannot name what it is/// handed without them.pub const z46 = @import("z46");pub const macaddress = @import("macaddress");pub const protocol = @import("protocol.zig");pub const Client = @import("Client.zig");pub const Receiver = @import("Receiver.zig");pub const usm = @import("usm.zig");
/// MIB support, which is what lets a tool take `sysDescr.0` and print/// `IF-MIB::ifDescr.1`. Re-exported because `Mibs` is a thin join over it and/// a caller wanting the syntax of an object goes to the registry directly.pub const smi = @import("smi");pub const Mibs = @import("Mibs.zig");
/// The pieces a caller reaches for most often, spelled without the layer in/// between.pub const ObjectId = asn1.ObjectId;pub const Message = protocol.Message;pub const Pdu = protocol.Pdu;pub const Value = protocol.Value;pub const VarBind = protocol.VarBind;pub const Version = protocol.Version;
test { testing.refAllDecls(@This()); _ = protocol; _ = Client; _ = usm; _ = Receiver; _ = Mibs;}