mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "R. Mayo" <rmayo100@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: IPv6 TCP server error, kernel version 2.6.11
Date: Wed, 5 Oct 2005 09:07:00 -0700 (PDT)	[thread overview]
Message-ID: <20051005160700.76629.qmail@web34407.mail.mud.yahoo.com> (raw)

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

                 reply	other threads:[~2005-10-05 16:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051005160700.76629.qmail@web34407.mail.mud.yahoo.com \
    --to=rmayo100@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®