Jump to content

Не проходит авторизация


Recommended Posts

  • Replies 79
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

это актуально для stg-2.408-rc2?

Теоретически BE поддерживается. Но т.к. у меня негде єто тестировать то может уже и сломалось.

Link to post
Share on other sites

таки BE, тестил этим:

 

#include <iostream>
using namespace std;
int main (int argc, char *argv[])
{
   unsigned int i;
   unsigned char *p = (unsigned char *)&i;
   cout<<"Enter an unsigned integer value: ";
   cin>>i;
   cout<<"i = "<<i<<endl
    <<"Comparison: &i = "<<&i<<endl
    <<"			*p = "<<(int *)p<<endl<<endl
    <<"Byte 1: "<<(int)p[0]<<endl
    <<"Byte 2: "<<(int)p[1]<<endl
    <<"Byte 3: "<<(int)p[2]<<endl
    <<"Byte 4: "<<(int)p[3]<<endl;
   unsigned int foo = ((i % (1 << 24)) % (1 << 16)) % (1 << 8);
   if ((unsigned int)p[0] == foo)
    cout<<endl<<"	=== Little Endian ==="<<endl;
   else
    cout<<endl<<"	=== Big Endian ==="<<endl;
   cout<<endl;
   return 0;
}

 

root@OpenWrt:~# /tmp/test3
Enter an unsigned integer value: 6
i = 6
Comparison: &i = 0x7fdc1a60
	    *p = 0x7fdc1a60

Byte 1: 0
Byte 2: 0
Byte 3: 0
Byte 4: 6

   === Big Endian ===

 

проц Atheros AR7240 rev2. на ноутбуке LE

Edited by banderlog
Link to post
Share on other sites

так что теперь оно опять поломалось.

 

хотя конечно хз что за версия сервака стоит у них. или можно пропатчить только клиента?

Ну оно могло и не работать. Мы тогда проверяли работу в случае когда сам сервер находится на платформе BE. Так что скорее всего достаточно будет пропатчить клиента.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...