| 610 | return 0; |
| 611 | } |
| 612 | static 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 | |
| 627 | static int h_nsrecord(int argc, unsigned char **argv){ |
| 628 | #ifndef NOIPV6 |
nothing calls this directly
no test coverage detected