LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-31-2011, 05:38 AM   #1
hayf
Member
 
Registered: Aug 2011
Distribution: Debian
Posts: 35

Rep: Reputation: Disabled
get the ipv6 source address


I need to get the ipv6 source address at the kernel level (Debian machine).
what is the eroor with this?

code:
struct ipv6_pinfo *np = inet_sk(sk);
addr = np->saddr;
 
Old 08-31-2011, 10:02 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,000

Rep: Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190
What error are you getting?
 
Old 09-01-2011, 02:51 AM   #3
hayf
Member
 
Registered: Aug 2011
Distribution: Debian
Posts: 35

Original Poster
Rep: Reputation: Disabled
in fact i am making changes in the kernel tcp stack in file tcp_output.c, and i am using the ipv6 source address to inject in the tcp header.
after recompiling the kernel, when i launch the browser epiphany, i get a kernel failure message:

BUG: unable to handle kernel NULL pointer dereference...

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can set source address in IPv6 header for sending data? sujay Linux - Networking 2 12-19-2009 01:32 AM
Can't use ipv6 although getting address bingmou Linux - Networking 2 07-02-2009 04:58 AM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 01:25 PM
IPv6 address ????????? hegdeshashi Programming 3 06-19-2006 03:13 AM
getting IPv6 address lacitpo Linux - Networking 1 03-18-2005 11:09 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration