1
2extern const struct SLInterfaceID_ SL_IID_array[MPH_MAX];
3extern const char * const interface_names[MPH_MAX];
4
5int main(int argc, char **argv)
6{
7    int i;
8    for (i = 0; i <= MAX_HASH_VALUE; ++i) {
9        const char *x = wordlist[i];
10        if (!x) {
11            printf("        -1");
12        } else {
13            const struct SLInterfaceID_ *xx = SL_IID_array;
14            unsigned MPH;
15            for (MPH = 0; MPH < MPH_MAX; ++MPH, ++xx) {
16                if (!memcmp(x, xx, 16)) {
17                    printf("        MPH_%s", interface_names[MPH]);
18                    goto out;
19                }
20            }
21            printf("        (-1)");
22out:
23            ;
24        }
25        if (i < MAX_HASH_VALUE)
26            printf(",");
27        printf("\n");
28    }
29    return EXIT_SUCCESS;
30}
31