Lines Matching defs:proto_str
68 char host_str[MAX_LEN_LIST_ENTRY] = "", proto_str[PROTOCOL_STR_LEN + 1] = "", port_str[PORT_STR_LEN + 1] = "";
87 strncpy (proto_str, pchr + 1, PROTOCOL_STR_LEN);
88 if (!strcmp(proto_str, "udp"))
89 sprintf (proto_str, "%d", PROTOCOL_NUM_UDP);
90 else if (!strcmp(proto_str, "tcp"))
91 sprintf (proto_str, "%d", PROTOCOL_NUM_TCP);
93 proto_str[0] = '\0'; /* Make the string null if invalid */
105 proto_str[0] = '\0';
112 if (proto_str[0] == '\0')
113 sprintf (proto_str, "%d", PROTOCOL_DEFAULT_KDC);
118 if (proto_str[0] == '\0')
119 sprintf (proto_str, "%d", PROTOCOL_DEFAULT_ADM);
120 else if (strcmp(proto_str, "1")) {
121 sprintf (proto_str, "%d", PROTOCOL_DEFAULT_ADM);
130 if (proto_str[0] == '\0')
131 sprintf (proto_str, "%d", PROTOCOL_DEFAULT_PWD);
132 else if (strcmp(proto_str, "0")) {
133 sprintf (proto_str, "%d", PROTOCOL_DEFAULT_PWD);
146 (strlen(host_str) + strlen(proto_str) + strlen(port_str) + 2 + 1));
151 snprintf (host_list[j], strlen(host_str) + strlen(proto_str) + strlen(port_str) + 2 + 1,
152 "%s#%s#%s", host_str, proto_str, port_str);