[uClinux-dev] (no subject)

quyipeng quyipeng at newbeiyang.com
Tue Sep 19 04:18:23 EDT 2006


Hello all.

I meat a ipx problem under linux, I wrote a ipx test application under linux but it won't work.
The test program like this:
int main()
{
        int n;
        int sck_listen;
        struct sockaddr_ipx sa_ipx;
        int ipx_len = sizeof(sa_ipx);
        sck_listen = socket(AF_IPX,SOCK_DGRAM, 0);
 
        memset(&sa_ipx, 0, sizeof(sa_ipx));
        sa_ipx.sipx_family=AF_IPX;
        n = bind(sck_listen, (struct sockaddr *)&sa_ipx, ipx_len);
        if(n== -1){
                printf("error bind!%d\n", n);
                exit(3);
        }
        printf("OK!\n");
        return 0;
}
but the bind function always excute failure, and print "error bind".
under my linux system ,i have this modules installed:
   ipx                       29545  0 
   p8022                   2368  1 ipx
   psnap                   4421  1 ipx
can you tell me what's the problem?

many thanks!
 				
--------------
wistal
2006-09-19



More information about the uClinux-dev mailing list