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

Function h_nscache6

src/conf.c:612–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610 return 0;
611}
612static int h_nscache6(int argc, unsigned char **argv){
613 int res;
614
615 res = atoi((char *)argv[1]);
616 if(res < 256) {
617 fprintf(stderr, "Invalid NS cache size: %d\n", res);
618 return 1;
619 }
620 if(inithashtable(&dns6_table, (unsigned)res)){
621 fprintf(stderr, "Failed to initialize NS cache\n");
622 return 2;
623 }
624 return 0;
625}
626
627static int h_nsrecord(int argc, unsigned char **argv){
628#ifndef NOIPV6

Callers

nothing calls this directly

Calls 1

inithashtableFunction · 0.85

Tested by

no test coverage detected