Lines Matching defs:ip
244 parse_pdus(struct asn_buf *b, struct snmp_pdu *pdu, int32_t *ip)
269 *ip = pdu->nbindings + 1;
423 * decoded, ip points to the index of the failed variable (errors
427 snmp_pdu_decode(struct asn_buf *b, struct snmp_pdu *pdu, int32_t *ip)
441 code = snmp_pdu_decode_scoped(b, pdu, ip);
547 snmp_pdu_decode_scoped(struct asn_buf *b, struct snmp_pdu *pdu, int32_t *ip)
620 err = parse_pdus(b, pdu, ip);
1385 u_long ip[4];
1388 if (sscanf(str, "%lu.%lu.%lu.%lu%n", &ip[0], &ip[1], &ip[2],
1389 &ip[3], &n) == 4 && (size_t)n == strlen(str) &&
1390 ip[0] <= 0xff && ip[1] <= 0xff &&
1391 ip[2] <= 0xff && ip[3] <= 0xff) {
1392 v->ipaddress[0] = (u_char)ip[0];
1393 v->ipaddress[1] = (u_char)ip[1];
1394 v->ipaddress[2] = (u_char)ip[2];
1395 v->ipaddress[3] = (u_char)ip[3];