| 596 | } |
| 597 | |
| 598 | static 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 | } |
| 612 | static int h_nscache6(int argc, unsigned char **argv){ |
| 613 | int res; |
| 614 |
nothing calls this directly
no test coverage detected