* Find the protox for the given "well-known" name. */
| 944 | * Find the protox for the given "well-known" name. |
| 945 | */ |
| 946 | static struct protox * |
| 947 | knownname(const char *name) |
| 948 | { |
| 949 | struct protox **tpp, *tp; |
| 950 | |
| 951 | for (tpp = protoprotox; *tpp; tpp++) |
| 952 | for (tp = *tpp; tp->pr_name; tp++) |
| 953 | if (strcmp(tp->pr_name, name) == 0) |
| 954 | return (tp); |
| 955 | return (NULL); |
| 956 | } |
| 957 | |
| 958 | /* |
| 959 | * Find the protox corresponding to name. |