Searched refs:community (Results 1 - 20 of 20) sorted by relevance

/freebsd-11-stable/contrib/ipfilter/lib/
H A Dsave_v2trap.c30 char *community; member in struct:snmpv2_opts_s
61 if (strcmp(s1->community, s2->community))
96 printf("%s ", snmpv2->community);
136 ctx->community = str;
217 if (v2->community)
218 free(v2->community);
232 return sendtrap_v2_0(v2->fd, v2->community,
301 maketrap_v2(community, buffer, bufsize, msg, msglen)
302 char *community;
[all...]
H A Dsave_v1trap.c27 char *community; member in struct:snmpv1_opts_s
57 if (strcmp(s1->community, s2->community))
92 printf("%s ", snmpv1->community);
131 ctx->community = str;
212 if (v1->community)
213 free(v1->community);
227 return sendtrap_v1_0(v1->fd, v1->community,
299 maketrap_v1(community, buffer, bufsize, msg, msglen, ipaddr, when)
300 char *community;
[all...]
/freebsd-11-stable/contrib/bsnmp/snmpd/
H A Dsnmpd.h51 struct community { struct
52 struct lmodule *owner; /* who created the community */
54 u_int value; /* value of this community */
55 u_char * string; /* the community string */
57 TAILQ_ENTRY(community) link;
62 extern TAILQ_HEAD(community_list, community) community_list;
235 /* disable community table */
H A Daction.c260 if (community != COMM_INITIALIZE)
265 if (community != COMM_INITIALIZE)
697 if (community != COMM_INITIALIZE)
748 * The community table
755 struct community *c;
761 if ((community != COMM_INITIALIZE && snmpd.comm_dis) ||
768 if ((community != COMM_INITIALIZE && snmpd.comm_dis) ||
774 if (community != COMM_INITIALIZE && snmpd.comm_dis)
796 /* create new community and use user sepcified index */
918 community !
[all...]
H A Dmain.c150 /* community value generator */
169 /* current community */
170 u_int community; variable
171 static struct community *comm;
390 if ((uname = comm_string(community)) == NULL)
396 if ((uname = comm_string(community)) == NULL)
478 * SNMP input. Start: decode the PDU, find the user or community.
608 * Look, whether we know the community or user
614 strcmp(comm->string, pdu->community) == 0)
625 community
[all...]
H A Dtrap.c425 strlcpy(pdu->community, com, sizeof(pdu->community));
442 strlcpy(pdu->community, com, sizeof(pdu->community));
H A Dsnmpmod.h242 /* drop because of bad community */
244 /* drop because of bad community use */
264 /* unknown community */
337 struct community *comm_define_ordered(u_int priv, const char *descr,
341 /* community for current packet */
342 extern u_int community;
583 /* decode PDU and find community */
H A Dtrans_udp.c193 if (community != COMM_INITIALIZE &&
H A Dtrans_lsock.c190 if (community != COMM_INITIALIZE &&
H A Dconfig.c1318 community = COMM_INITIALIZE;
/freebsd-11-stable/contrib/bsnmp/snmp_vacm/
H A Dvacm_snmp.c115 if (community != COMM_INITIALIZE)
163 if (community != COMM_INITIALIZE &&
191 if (community != COMM_INITIALIZE)
285 if (acl != NULL && community != COMM_INITIALIZE &&
342 if (community != COMM_INITIALIZE)
482 if (community != COMM_INITIALIZE &&
526 if (community != COMM_INITIALIZE)
/freebsd-11-stable/contrib/bsnmp/lib/
H A Dsnmp.h150 char community[SNMP_COMMUNITY_MAXLEN + 1]; member in struct:snmp_pdu
H A Dsnmp.c539 if (asn_get_octetstring(b, (u_char *)pdu->community,
541 snmp_error("cannot decode community");
544 pdu->community[octs_len] = '\0';
804 if (asn_put_octetstring(b, (u_char *)pdu->community,
805 strlen(pdu->community)) != ASN_ERR_OK)
1126 snmp_printf("%s %s '%s'", types[pdu->type], vers, pdu->community);
1144 snmp_printf("%s %s '%s'", types[pdu->type], vers, pdu->community);
H A Dsnmpclient.c1060 /* copy community strings */
1148 strlcpy(pdu->community, snmp_client.write_community,
1149 sizeof(pdu->community));
1151 strlcpy(pdu->community, snmp_client.read_community,
1152 sizeof(pdu->community));
1872 * [trans::][community@][server][:port]
1917 seterr(sc, "community string too long");
H A Dsnmpagent.c172 strcpy(resp->community, pdu->community);
/freebsd-11-stable/contrib/bsnmp/snmp_target/
H A Dtarget_snmp.c154 if (community != COMM_INITIALIZE &&
238 if (community != COMM_INITIALIZE)
364 if (community != COMM_INITIALIZE &&
437 if (community != COMM_INITIALIZE)
546 if (community != COMM_INITIALIZE &&
585 if (community != COMM_INITIALIZE)
/freebsd-11-stable/contrib/bsnmp/snmp_usm/
H A Dusm_snmp.c176 if (community != COMM_INITIALIZE &&
194 if (community != COMM_INITIALIZE)
311 if (community != COMM_INITIALIZE)
/freebsd-11-stable/usr.sbin/bsnmpd/bsnmpd/
H A DMakefile45 MLINKS+= snmpmod.3 community.3
/freebsd-11-stable/contrib/bsnmp/snmp_ntp/
H A Dsnmp_ntp.c1527 if (community != COMM_INITIALIZE)
1537 if (community != COMM_INITIALIZE)
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c1018 if (community != COMM_INITIALIZE)

Completed in 126 milliseconds