Lines Matching defs:cport
860 c->cport = NULL;
912 if (snmp_client.cport == NULL) {
913 if ((snmp_client.cport = malloc(1 + sizeof(DEFAULT_PORT)))
918 strcpy(snmp_client.cport, DEFAULT_PORT);
925 free(snmp_client.cport);
926 snmp_client.cport = ptr;
927 strcpy(snmp_client.cport, port);
937 error = getaddrinfo(snmp_client.chost, snmp_client.cport, &hints, &res0);
1144 free(snmp_client.cport);
1863 if (cl->cport != NULL)
1864 free(cl->cport);
1865 cl->cport = NULL;
1870 if (cl->cport != NULL)
1871 free(cl->cport);
1872 cl->cport = 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
2257 char *cport;
2262 cport = strdup("snmp");
2264 cport = save_str(sc, port);
2266 if (cport == NULL) {
2287 free(sc->cport);
2288 sc->cport = cport;
2295 printf("port: '%s'\n", sc->cport);