Lines Matching full:length

150                              unsigned           length);
154 static void recv_accept_msg(unsigned length);
156 static void recv_decline_msg(unsigned length);
160 static void recv_refuse_msg(unsigned length);
162 static void recv_failed_msg(unsigned length);
166 static void recv_alive_msg(unsigned length );
204 XdmcpRegisterManufacturerDisplayID(const char *name, int length) in XdmcpRegisterManufacturerDisplayID() argument
209 if (!XdmcpAllocARRAY8(&ManufacturerDisplayID, length)) in XdmcpRegisterManufacturerDisplayID()
211 for (i = 0; i < length; i++) in XdmcpRegisterManufacturerDisplayID()
392 AuthenticationNames.length + 1) && in XdmcpRegisterAuthentication()
394 AuthenticationDatas.length + 1) && in XdmcpRegisterAuthentication()
396 malloc((AuthenticationNames.length + in XdmcpRegisterAuthentication()
402 for (i = 0; i < AuthenticationNames.length - 1; i++) in XdmcpRegisterAuthentication()
404 newFuncs[AuthenticationNames.length - 1].Validator = Validator; in XdmcpRegisterAuthentication()
405 newFuncs[AuthenticationNames.length - 1].Generator = Generator; in XdmcpRegisterAuthentication()
406 newFuncs[AuthenticationNames.length - 1].AddAuth = AddAuth; in XdmcpRegisterAuthentication()
409 AuthenticationNames.data[AuthenticationNames.length - 1] = in XdmcpRegisterAuthentication()
411 AuthenticationDatas.data[AuthenticationDatas.length - 1] = in XdmcpRegisterAuthentication()
432 for (i = 0; i < AuthenticationNames.length; i++) in XdmcpSetAuthentication()
498 if (ConnectionAddresses.length + 1 == 256) in XdmcpRegisterConnection()
503 if (!XdmcpReallocARRAY16(&ConnectionTypes, ConnectionTypes.length + 1)) { in XdmcpRegisterConnection()
508 ConnectionAddresses.length + 1)) { in XdmcpRegisterConnection()
512 ConnectionTypes.data[ConnectionTypes.length - 1] = (CARD16) type; in XdmcpRegisterConnection()
515 ConnectionAddresses.data[ConnectionAddresses.length - 1].data = newAddress; in XdmcpRegisterConnection()
516 ConnectionAddresses.data[ConnectionAddresses.length - 1].length = addrlen; in XdmcpRegisterConnection()
543 (&AuthorizationNames, AuthorizationNames.length + 1)) { in XdmcpRegisterAuthorization()
549 authName.length = namelen; in XdmcpRegisterAuthorization()
550 AuthorizationNames.data[AuthorizationNames.length - 1] = authName; in XdmcpRegisterAuthorization()
560 XdmcpRegisterDisplayClass(const char *name, int length) in XdmcpRegisterDisplayClass() argument
565 if (!XdmcpAllocARRAY8(&DisplayClass, length)) in XdmcpRegisterDisplayClass()
567 for (i = 0; i < length; i++) in XdmcpRegisterDisplayClass()
736 recv_willing_msg((struct sockaddr *) &from, fromlen, header.length); in receive_packet()
742 recv_accept_msg(header.length); in receive_packet()
745 recv_decline_msg(header.length); in receive_packet()
748 recv_refuse_msg(header.length); in receive_packet()
751 recv_failed_msg(header.length); in receive_packet()
754 recv_alive_msg(header.length); in receive_packet()
887 (AuthenticationName->length == 0 || in XdmcpCheckAuthentication()
901 return (*AddAuth) ((unsigned short) name->length, in XdmcpAddAuthorization()
903 (unsigned short) data->length, (char *) data->data); in XdmcpAddAuthorization()
973 header.length = 1; in send_query_msg()
974 for (i = 0; i < AuthenticationNames.length; i++) in send_query_msg()
975 header.length += 2 + AuthenticationNames.data[i].length; in send_query_msg()
1027 recv_willing_msg(struct sockaddr *from, int fromlen, unsigned length) in recv_willing_msg() argument
1039 if (length == 6 + authenticationName.length + in recv_willing_msg()
1040 hostname.length + status.length) { in recv_willing_msg()
1067 int length; in send_request_msg() local
1090 length = 2; /* display number */ in send_request_msg()
1091 length += 1 + 2 * ConnectionTypes.length; /* connection types */ in send_request_msg()
1092 length += 1; /* connection addresses */ in send_request_msg()
1093 for (i = 0; i < ConnectionAddresses.length; i++) in send_request_msg()
1094 length += 2 + ConnectionAddresses.data[i].length; in send_request_msg()
1095 authenticationData.length = 0; in send_request_msg()
1101 length += 2 + AuthenticationName->length; /* authentication name */ in send_request_msg()
1102 length += 2 + authenticationData.length; /* authentication data */ in send_request_msg()
1103 length += 1; /* authorization names */ in send_request_msg()
1104 for (i = 0; i < AuthorizationNames.length; i++) in send_request_msg()
1105 length += 2 + AuthorizationNames.data[i].length; in send_request_msg()
1106 length += 2 + ManufacturerDisplayID.length; /* display ID */ in send_request_msg()
1107 header.length = length; in send_request_msg()
1114 XdmcpWriteCARD8(&buffer, ConnectionTypes.length); in send_request_msg()
1119 for (i = 0; i < (int) ConnectionTypes.length; i++) in send_request_msg()
1122 for (i = 0; i < (int) ConnectionTypes.length; i++) in send_request_msg()
1126 XdmcpWriteCARD8(&buffer, ConnectionAddresses.length); in send_request_msg()
1127 for (i = 0; i < (int) ConnectionAddresses.length; i++) in send_request_msg()
1128 if ((i < ConnectionTypes.length) && in send_request_msg()
1131 for (i = 0; i < (int) ConnectionAddresses.length; i++) in send_request_msg()
1132 if ((i >= ConnectionTypes.length) || in send_request_msg()
1151 recv_accept_msg(unsigned length) in recv_accept_msg() argument
1168 if (length == 12 + AcceptAuthenticationName.length + in recv_accept_msg()
1169 AcceptAuthenticationData.length + in recv_accept_msg()
1170 AcceptAuthorizationName.length + AcceptAuthorizationData.length) { in recv_accept_msg()
1196 recv_decline_msg(unsigned length) in recv_decline_msg() argument
1206 if (length == 6 + status.length + in recv_decline_msg()
1207 DeclineAuthenticationName.length + in recv_decline_msg()
1208 DeclineAuthenticationData.length && in recv_decline_msg()
1227 header.length = 8 + DisplayClass.length; in send_manage_msg()
1243 recv_refuse_msg(unsigned length) in recv_refuse_msg() argument
1249 if (length != 4) in recv_refuse_msg()
1260 recv_failed_msg(unsigned length) in recv_failed_msg() argument
1270 if (length == 6 + status.length && SessionID == FailedSessionID) { in recv_failed_msg()
1285 header.length = 6; in send_keepalive_msg()
1300 recv_alive_msg(unsigned length) in recv_alive_msg() argument
1307 if (length != 5) in recv_alive_msg()
1326 status->length, status->length, status->data); in XdmcpFatal()