• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/usr.sbin/bsnmpd/tools/libbsnmptools/

Lines Matching refs:headp

80 enum_pairs_free(struct enum_pairs *headp)
84 if (headp == NULL)
87 while ((e = STAILQ_FIRST(headp)) != NULL) {
88 STAILQ_REMOVE_HEAD(headp, link);
95 free(headp);
111 snmp_mapping_listfree(struct snmp_mapping *headp)
115 while ((p = SLIST_FIRST(headp)) != NULL) {
116 SLIST_REMOVE_HEAD(headp, link);
126 SLIST_INIT(headp);
130 snmp_index_listfree(struct snmp_idxlist *headp)
134 while ((i = STAILQ_FIRST(headp)) != NULL) {
135 STAILQ_REMOVE_HEAD(headp, link);
141 STAILQ_INIT(headp);
145 snmp_mapping_table_listfree(struct snmp_table_index *headp)
149 while ((t = SLIST_FIRST(headp)) != NULL) {
150 SLIST_REMOVE_HEAD(headp, link);
161 snmp_enumtc_listfree(struct snmp_enum_tc *headp)
165 while ((t = SLIST_FIRST(headp)) != NULL) {
166 SLIST_REMOVE_HEAD(headp, link);
199 snmp_dump_enumpairs(struct enum_pairs *headp)
203 if (headp == NULL)
207 STAILQ_FOREACH(entry, headp, link)
231 snmp_dump_indexlist(struct snmp_idxlist *headp)
235 if (headp == NULL)
238 STAILQ_FOREACH(entry, headp, link) {
266 enum_pair_insert(struct enum_pairs *headp, int32_t enum_val, char *enum_str)
282 STAILQ_INSERT_TAIL(headp, e_new, link);
294 snmp_mapping_insert(struct snmp_mapping *headp, struct snmp_oid2str *entry)
302 if ((prev = SLIST_FIRST(headp)) == NULL ||
304 SLIST_INSERT_HEAD(headp, entry, link);
309 SLIST_FOREACH(temp, headp, link) {
465 snmp_index_insert(struct snmp_idxlist *headp, struct index *idx)
467 if (headp == NULL || idx == NULL)
470 STAILQ_INSERT_TAIL(headp, idx, link);
475 snmp_syntax_insert(struct snmp_idxlist *headp, struct enum_pairs *enums,
485 if (snmp_index_insert(headp, idx) < 0) {
603 snmp_mapping_dumplist(struct snmp_mapping *headp)
608 if (headp == NULL)
611 SLIST_FOREACH(entry,headp,link) {
622 snmp_mapping_dumptable(struct snmp_table_index *headp)
627 if (headp == NULL)
630 SLIST_FOREACH(entry, headp, link) {
690 enum_string_lookup(struct enum_pairs *headp, int32_t enum_val)
694 if (headp == NULL)
697 STAILQ_FOREACH(temp, headp, link) {
706 enum_number_lookup(struct enum_pairs *headp, char *e_str)
710 if (headp == NULL)
713 STAILQ_FOREACH(tmp, headp, link)
721 snmp_lookuplist_string(struct snmp_mapping *headp, struct snmp_object *s)
725 if (headp == NULL)
728 SLIST_FOREACH(temp, headp, link)
740 snmp_lookup_leaf(struct snmp_mapping *headp, struct snmp_object *s)
744 if (headp == NULL)
747 SLIST_FOREACH(temp,headp,link) {
896 struct snmp_table_index *headp, struct snmp_object *s, char *oid)
900 if (snmptoolctx == NULL || headp == NULL)
903 SLIST_FOREACH(temp, headp, link) {