MCPcopy Create free account
hub / github.com/3proxy/3proxy / h_nscache

Function h_nscache

src/conf.c:598–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598static int h_nscache(int argc, unsigned char **argv){
599 int res;
600
601 res = atoi((char *)argv[1]);
602 if(res < 256) {
603 fprintf(stderr, "Invalid NS cache size: %d\n", res);
604 return 1;
605 }
606 if(inithashtable(&dns_table, (unsigned)res)){
607 fprintf(stderr, "Failed to initialize NS cache\n");
608 return 2;
609 }
610 return 0;
611}
612static int h_nscache6(int argc, unsigned char **argv){
613 int res;
614

Callers

nothing calls this directly

Calls 1

inithashtableFunction · 0.85

Tested by

no test coverage detected