65#include <sys/socket.h>
68#include <netinet/in.h>
114 snmplib_debug(8,
"LIBSNMP: snmp_build(): Packet len %d (requid %d)\n",
115 *out_length, pdu->
reqid);
134 u_char Community[128];
136 int CommunityLen = 128;
140 Community, &CommunityLen,
145 bufp = (u_char *)
xmalloc(CommunityLen + 1);
149 strncpy((
char *) bufp, (
char *) Community, CommunityLen);
150 bufp[CommunityLen] =
'\0';
u_char * snmp_parse(struct snmp_session *session, struct snmp_pdu *pdu, u_char *data, int length)
int snmp_build(struct snmp_session *session, struct snmp_pdu *pdu, u_char *packet, int *out_length)
SQUIDCEXTERN void snmplib_debug(int, const char *,...) PRINTF_FORMAT_ARG2
u_char * snmp_msg_Encode(u_char *, int *, u_char *, int, int, struct snmp_pdu *)
u_char * snmp_msg_Decode(u_char *, int *, u_char *, int *, int *, struct snmp_pdu *)