Messages in this thread | | | Date | Wed, 5 Oct 2005 09:07:00 -0700 (PDT) | From | "R. Mayo" <> | Subject | IPv6 TCP server error, kernel version 2.6.11 |
| |
I am attempting to write a simple TCP client-server application that writes Traffic Class data into the IPv6 header on the client side, and reads that data on the server side.
My client side software works (the data is present in the packets according to Ethereal), but on the server side I'm getting a Kernel Panic.
This is basically the server code I'm using to read the port (with error trapping removed):
s = socket (AF_INET6, SOCK_STREAM, 0); bind (s, (struct sockaddr *)&srv_addr, sizeof(struct sockaddr_in6)); listen (s, 10); setsockopt (s, IPPROTO_IPV6, IPV6_FLOWINFO, (void *)&on, sizeof(on)); acc_sock = accept (s, (struct sockaddr *)&cli_addr, (unsigned int *)&cli_addr_size); printf ("Received Flowinfo = %032x\n", cli_addr.sin6_flowinfo); size = recv (acc_sock, data, 100, 0); close (acc_sock); close (s);
When the code gets to the line that prints out the received Traffic Class, the kernel panic occurs. I don't know if the problem lies in the OS (I'm using kernel ver. 2.6.11, untainted) or if the steps in my code are out of order, but I do know no crash occurs if the setsockopt command is not present (Naturally, I can't read the Traffic Class data in this case, though.)
I'm not a Linux software development pro, so I don't know how to capture the screen dump, but if that is needed and someone can send me directions, I'll be happy to comply.
Any suggestions, Rich Mayo
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |