Home
last modified time | relevance | path

Searched refs:asn_oid (Results 1 – 25 of 57) sorted by relevance

123

/freebsd/contrib/bsnmp/lib/
H A Dasn1.h58 struct asn_oid { struct
112 enum asn_err asn_get_objid_raw(struct asn_buf *, asn_len_t, struct asn_oid *);
113 enum asn_err asn_get_objid(struct asn_buf *, struct asn_oid *);
114 enum asn_err asn_put_objid(struct asn_buf *, const struct asn_oid *);
138 void asn_slice_oid(struct asn_oid *, const struct asn_oid *, u_int, u_int);
141 void asn_append_oid(struct asn_oid *, const struct asn_oid *);
144 int asn_compare_oid(const struct asn_oid *, const struct asn_oid *);
147 int asn_is_suboid(const struct asn_oid *, const struct asn_oid *);
150 char *asn_oid2str_r(const struct asn_oid *, char *);
153 char *asn_oid2str(const struct asn_oid *);
H A Dsnmpagent.h73 struct asn_oid obj;
74 struct asn_oid idx;
97 struct asn_oid oid;
145 const struct asn_oid *, const struct asn_oid *, size_t, snmp_depop_t);
H A Dasn1.c581 asn_get_objid_raw(struct asn_buf *b, asn_len_t len, struct asn_oid *oid) in asn_get_objid_raw()
636 asn_get_objid(struct asn_buf *b, struct asn_oid *oid) in asn_get_objid()
652 asn_put_objid(struct asn_buf *b, const struct asn_oid *oid) in asn_put_objid()
905 asn_slice_oid(struct asn_oid *dest, const struct asn_oid *src, in asn_slice_oid()
920 asn_append_oid(struct asn_oid *to, const struct asn_oid *from) in asn_append_oid()
962 asn_compare_oid(const struct asn_oid *o1, const struct asn_oid *o2) in asn_compare_oid()
983 asn_is_suboid(const struct asn_oid *o1, const struct asn_oid *o2) in asn_is_suboid()
1000 asn_oid2str_r(const struct asn_oid *oid, char *buf) in asn_oid2str_r()
1020 asn_oid2str(const struct asn_oid *oid) in asn_oid2str()
H A Dsnmpclient.h145 int snmp_oid_append(struct asn_oid *_oid, const char *_fmt, ...);
157 struct asn_oid table;
159 struct asn_oid last_change;
H A Dsnmp.h72 struct asn_oid var;
80 struct asn_oid oid;
175 struct asn_oid enterprise;
/freebsd/contrib/bsnmp/tests/
H A Dasn1.cc849 const auto conv = [] (const auto &buf, const asn_oid &xval) { in __anon4d4e46190f02()
852 struct asn_oid val; in __anon4d4e46190f02()
869 struct asn_oid val; in __anon4d4e46191002()
874 conv("x06:01:00"_cbuf, asn_oid {2, {0, 0}});
875 conv("x06:01:28"_cbuf, asn_oid {2, {1, 0}});
876 conv("x06:01:50"_cbuf, asn_oid {2, {2, 0}});
878 conv("x06:01:27"_cbuf, asn_oid {2, {0, 39}});
879 conv("x06:01:4f"_cbuf, asn_oid {2, {1, 39}});
880 conv("x06:01:7f"_cbuf, asn_oid {2, {2, 47}});
882 conv("x06:02:81:00"_cbuf, asn_oid {2, {2, 48}});
[all …]
/freebsd/contrib/bsnmp/snmpd/
H A Dexport.c212 struct asn_oid *oid) in oid_save()
214 if ((ctx->scratch->ptr1 = malloc(sizeof(struct asn_oid))) == NULL) in oid_save()
216 *(struct asn_oid *)ctx->scratch->ptr1 = *oid; in oid_save()
223 oid_rollback(struct snmp_context *ctx, struct asn_oid *oid) in oid_rollback()
225 *oid = *(struct asn_oid *)ctx->scratch->ptr1; in oid_rollback()
236 oid_get(struct snmp_value *value, const struct asn_oid *oid) in oid_get()
246 index_decode(const struct asn_oid *oid, u_int sub, u_int code, ...) in index_decode()
305 struct asn_oid *aval; in index_decode()
310 aval = va_arg(ap, struct asn_oid *); in index_decode()
361 index_compare_off(const struct asn_oid *oid, u_int sub, in index_compare_off()
[all …]
H A Dsnmpmod.h338 const struct asn_oid *, const struct sockaddr *, socklen_t,
358 struct asn_oid object_id;
380 struct asn_oid *index, struct lmodule *owner, const char *str);
470 struct asn_oid subtree; /* key */
501 struct vacm_view *vacm_new_view(char *, struct asn_oid *);
579 extern const struct asn_oid oid_zeroDotZero;
582 extern const struct asn_oid oid_usmUnknownEngineIDs;
583 extern const struct asn_oid oid_usmNotInTimeWindows;
616 u_int or_register(const struct asn_oid *, const char *, struct lmodule *);
635 void snmp_send_port(void *, const struct asn_oid *, struct snmp_pdu *,
[all …]
H A Dsnmpd.h59 struct asn_oid index;
133 struct asn_oid index;
169 struct asn_oid index; /* table index of this tp point */
186 struct asn_oid id; /* OBJID of this transport */
203 struct asn_oid index; /* transport table index */
218 const struct asn_oid *, u_int);
220 const struct asn_oid *, u_int);
299 struct asn_oid oid; /* the resource OID */
312 struct asn_oid index;
H A Dtrap.c76 static const struct asn_oid oid_begemotTrapSinkTable =
78 static const struct asn_oid oid_sysUpTime = OIDX_sysUpTime;
79 static const struct asn_oid oid_snmpTrapOID = OIDX_snmpTrapOID;
304 struct asn_oid idx; in op_trapsink()
424 const struct asn_oid *trap_oid) in snmp_create_v1_trap()
441 const struct asn_oid *trap_oid) in snmp_create_v2_trap()
467 const struct asn_oid *trap_oid) in snmp_create_v3_trap()
524 snmp_send_trap(const struct asn_oid *trap_oid, ...) in snmp_send_trap()
/freebsd/contrib/bsnmp/snmp_vacm/
H A Dvacm_snmp.c51 static const struct asn_oid oid_vacm = OIDX_snmpVacmMIB;
60 static void vacm_append_userindex(struct asn_oid *,
62 static int vacm_user_index_decode(const struct asn_oid *,
64 static struct vacm_user *vacm_get_user(const struct asn_oid *,
66 static struct vacm_user *vacm_get_next_user(const struct asn_oid *,
68 static void vacm_append_access_rule_index(struct asn_oid *,
70 static int vacm_access_rule_index_decode(const struct asn_oid *,
72 static struct vacm_access * vacm_get_access_rule(const struct asn_oid *,
74 static struct vacm_access * vacm_get_next_access_rule(const struct asn_oid *,
76 static int vacm_view_index_decode(const struct asn_oid *, uint,
[all …]
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_fs_tbl.c72 const struct asn_oid *type;
115 static const struct asn_oid OIDX_hrFSBerkeleyFFS_c = OIDX_hrFSBerkeleyFFS;
116 static const struct asn_oid OIDX_hrFSiso9660_c = OIDX_hrFSiso9660;
117 static const struct asn_oid OIDX_hrFSNFS_c = OIDX_hrFSNFS;
118 static const struct asn_oid OIDX_hrFSLinuxExt2_c = OIDX_hrFSLinuxExt2;
119 static const struct asn_oid OIDX_hrFSOther_c = OIDX_hrFSOther;
120 static const struct asn_oid OIDX_hrFSFAT32_c = OIDX_hrFSFAT32;
121 static const struct asn_oid OIDX_hrFSNTFS_c = OIDX_hrFSNTFS;
122 static const struct asn_oid OIDX_hrFSNetware_c = OIDX_hrFSNetware;
123 static const struct asn_oid OIDX_hrFSHPFS_c = OIDX_hrFSHPFS;
[all …]
H A Dhostres_snmp.h121 const struct asn_oid *type;
123 const struct asn_oid *id; /* only oid_zeroDotZero as (*id) value*/
204 const struct asn_oid *fs_get_type(const struct statfs *);
/freebsd/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptools.h89 struct asn_oid var;
101 struct asn_oid var;
129 struct asn_oid cut;
233 extern const struct asn_oid IsoOrgDod_OID;
239 const struct asn_oid *, int32_t);
302 int32_t snmp_object_remove(struct snmp_toolinfo *, struct asn_oid *oid);
307 char *snmp_parse_suboid(char *, struct asn_oid *);
309 int32_t snmp_parse_numoid(char *, struct asn_oid *);
310 int32_t snmp_suboid_append(struct asn_oid *, asn_subid_t);
311 int32_t snmp_suboid_pop(struct asn_oid *);
[all …]
H A Dbsnmptc.c57 static char *snmp_str2asn_oid(char *, struct asn_oid *);
62 static char *snmp_date2asn_oid(char * , struct asn_oid *);
67 static char *snmp_addr2asn_oid(char *, struct asn_oid *);
72 static char *snmp_ntp_ts2asn_oid(char *, struct asn_oid *);
77 static char *snmp_bridgeid2oct(char *, struct asn_oid *);
82 static char *snmp_bport_id2oct(char *, struct asn_oid *);
87 static char *snmp_inetaddr2oct(char *str, struct asn_oid *oid);
91 static char *snmp_bits2oct(char *str, struct asn_oid *oid);
182 snmp_tc2oid(enum snmp_tc tc, char *str, struct asn_oid *oid) in snmp_tc2oid()
229 snmp_str2asn_oid(char *str, struct asn_oid *oid) in snmp_str2asn_oid()
[all …]
H A Dbsnmptools.c66 const struct asn_oid IsoOrgDod_OID = {
237 const struct asn_oid *cut, int32_t done) in add_filename()
382 const struct asn_oid *cut) in parse_flist()
718 struct asn_oid cut; in parse_include()
742 memset(&cut, 0, sizeof(struct asn_oid)); in parse_include()
1002 snmp_parse_suboid(char *str, struct asn_oid *oid) in snmp_parse_suboid()
1028 snmp_int2asn_oid(char *str, struct asn_oid *oid) in snmp_int2asn_oid()
1053 struct asn_oid *oid) in snmp_oid2asn_oid()
1083 snmp_ip2asn_oid(char *str, struct asn_oid *oid) in snmp_ip2asn_oid()
1107 snmp_uint2asn_oid(char *str, struct asn_oid *oid) in snmp_uint2asn_oid()
[all …]
H A Dbsnmptc.h85 typedef char * (*snmp_tc2oid_f) (char *str, struct asn_oid *oid);
90 char *snmp_tc2oid(enum snmp_tc tc, char *str, struct asn_oid *oid);
/freebsd/contrib/bsnmp/snmp_usm/
H A Dusm_snmp.c51 static const struct asn_oid oid_usm = OIDX_snmpUsmMIB;
53 static const struct asn_oid oid_usmNoAuthProtocol = OIDX_usmNoAuthProtocol;
54 static const struct asn_oid oid_usmHMACMD5AuthProtocol = \
56 static const struct asn_oid oid_usmHMACSHAAuthProtocol = \
59 static const struct asn_oid oid_usmNoPrivProtocol = OIDX_usmNoPrivProtocol;
60 static const struct asn_oid oid_usmDESPrivProtocol = OIDX_usmDESPrivProtocol;
61 static const struct asn_oid oid_usmAesCfb128Protocol = OIDX_usmAesCfb128Protocol;
63 static const struct asn_oid oid_usmUserSecurityName = OIDX_usmUserSecurityName;
70 static struct usm_user * usm_get_user(const struct asn_oid *, uint);
71 static struct usm_user * usm_get_next_user(const struct asn_oid *, uint);
[all …]
/freebsd/contrib/bsnmp/snmp_target/
H A Dtarget_snmp.c51 static const struct asn_oid oid_target = OIDX_snmpTargetMIB;
52 static const struct asn_oid oid_notification = OIDX_snmpNotificationMIB;
59 static const struct asn_oid oid_udp_domain = OIDX_snmpUDPDomain;
64 static void target_append_index(struct asn_oid *, uint,
66 static int target_decode_index(const struct asn_oid *, uint,
68 static struct target_address *target_get_address(const struct asn_oid *,
70 static struct target_address *target_get_next_address(const struct asn_oid *,
72 static struct target_param *target_get_param(const struct asn_oid *,
74 static struct target_param *target_get_next_param(const struct asn_oid *,
76 static struct target_notify *target_get_notify(const struct asn_oid *,
[all …]
/freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/
H A Dwlan_snmp.c60 static const struct asn_oid oid_wlan = OIDX_begemotWlan;
137 static struct wlan_iface * wlan_get_interface(const struct asn_oid *, uint);
138 static struct wlan_iface * wlan_get_snmp_interface(const struct asn_oid *,
140 static struct wlan_peer * wlan_get_peer(const struct asn_oid *, uint,
142 static struct ieee80211_channel *wlan_get_channel(const struct asn_oid *, uint,
144 static struct ieee80211_roamparam *wlan_get_roam_param(const struct asn_oid *,
146 static struct ieee80211_txparam *wlan_get_tx_param(const struct asn_oid *,
148 static struct wlan_scan_result *wlan_get_scanr(const struct asn_oid *, uint,
150 static struct wlan_mac_mac * wlan_get_acl_mac(const struct asn_oid *,
152 static struct wlan_iface * wlan_mesh_get_iface(const struct asn_oid *, uint);
[all …]
/freebsd/contrib/bsnmp/snmp_mibII/
H A Dsnmp_mibII.h81 struct asn_oid spec_oid;
98 struct asn_oid index; /* index for table search */
109 struct asn_oid index;
H A DmibII.h138 struct asn_oid index;
147 struct asn_oid index; /* contains both the ifindex and addr */
/freebsd/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_addrs.c337 bridge_addrs_index_append(struct asn_oid *oid, uint sub, in bridge_addrs_index_append()
353 bridge_addrs_get(const struct asn_oid *oid, uint sub, in bridge_addrs_get()
374 bridge_addrs_getnext(const struct asn_oid *oid, uint sub, in bridge_addrs_getnext()
456 bridge_addrs_begemot_index_append(struct asn_oid *oid, uint sub, in bridge_addrs_begemot_index_append()
484 bridge_addrs_begemot_get(const struct asn_oid *oid, uint sub) in bridge_addrs_begemot_get()
514 bridge_addrs_begemot_getnext(const struct asn_oid *oid, uint sub) in bridge_addrs_begemot_getnext()
H A Dbridge_if.c56 static const struct asn_oid oid_newRoot = OIDX_newRoot;
57 static const struct asn_oid oid_TopologyChange = OIDX_topologyChange;
58 static const struct asn_oid oid_begemotBrigeName = \
60 static const struct asn_oid oid_begemotNewRoot = OIDX_begemotBridgeNewRoot;
61 static const struct asn_oid oid_begemotTopologyChange = \
929 bridge_name_index_get(const struct asn_oid *oid, uint sub, char *b_name) in bridge_name_index_get()
944 bridge_if_index_append(struct asn_oid *oid, uint sub, in bridge_if_index_append()
957 bridge_if_index_get(const struct asn_oid *oid, uint sub) in bridge_if_index_get()
973 bridge_if_index_getnext(const struct asn_oid *oid, uint sub) in bridge_if_index_getnext()
/freebsd/usr.sbin/bsnmpd/tools/bsnmptools/
H A Dbsnmpget.c260 struct asn_oid in_oid; in snmptools_parse_stroid()
275 memset(&in_oid, 0, sizeof(struct asn_oid)); in snmptools_parse_stroid()
438 static const struct asn_oid snmp_mibII_OID = {
454 snmpwalk_nextpdu_create(uint32_t op, struct asn_oid *var, struct snmp_pdu *pdu) in snmpwalk_nextpdu_create()
465 struct asn_oid root; /* Keep the initial oid. */ in snmptool_walk()
480 memset(&root, 0, sizeof(struct asn_oid)); in snmptool_walk()

123