Lines Matching defs:chost
859 c->chost = NULL;
895 if (snmp_client.chost == NULL) {
896 if ((snmp_client.chost = malloc(1 + sizeof(DEFAULT_HOST)))
901 strcpy(snmp_client.chost, DEFAULT_HOST);
908 free(snmp_client.chost);
909 snmp_client.chost = ptr;
910 strcpy(snmp_client.chost, host);
937 error = getaddrinfo(snmp_client.chost, snmp_client.cport, &hints, &res0);
939 seterr(&snmp_client, "%s: %s", snmp_client.chost,
984 if (snmp_client.chost == NULL) {
985 if ((snmp_client.chost = malloc(1 + sizeof(DEFAULT_LOCAL)))
990 strcpy(snmp_client.chost, DEFAULT_LOCAL);
997 free(snmp_client.chost);
998 snmp_client.chost = ptr;
999 strcpy(snmp_client.chost, path);
1037 strlen(snmp_client.chost);
1038 strncpy(sa.sun_path, snmp_client.chost, sizeof(sa.sun_path) - 1);
1143 free(snmp_client.chost);
1843 if (cl->chost != NULL)
1844 free(cl->chost);
1845 cl->chost = NULL;
1850 if (cl->chost != NULL)
1851 free(cl->chost);
1852 cl->chost = np;
2148 * The functions sets the chost, cport, trans, read_community and
2150 * The chost and cport fields are allocated by malloc(3), their previous
2227 char *chost;
2230 if ((chost = save_str(sc, ipv6)) == NULL)
2236 if ((chost = save_str(sc, ipv4)) == NULL)
2241 if ((chost = save_str(sc, host)) == NULL)
2267 free(chost);
2285 free(sc->chost);
2286 sc->chost = chost;
2294 printf("host: '%s'\n", sc->chost);