LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2009, 11:38 AM   #1
sujay
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
How can set source address in IPv6 header for sending data?


I have to send Neighbor Discovery packet, i have to send this packet in an IPV6 header.
My requirement is to set the "source address" in IPv6 header to "::0" rather than allowing kernel to insert the source address.
How can i do this??

I googled for this, only clue i got is to use IPV6_PKTINFO in setsockopt() with usage of struct pktinfo, but i couldn't get the expected result.

Note: Im using a RAW socket for this.

Any help on this would be appreciated.
Thanks in advance
 
Old 12-18-2009, 08:03 PM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
How can set source address in IPv6 header for sending data? = IP spoofing.

Most frequently use is denial-of-service (DOS) attacks.
 
Old 12-19-2009, 02:32 AM   #3
sujay
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nimnull22 View Post
How can set source address in IPv6 header for sending data? = IP spoofing.

Most frequently use is denial-of-service (DOS) attacks.
Hi,

My intention isn't any DOS or any sort of attacks.

I need to send Neighbor discovery packets with the help of ICMPv6 packet, wherein i need to set the source ipv6 address of IPV6 header which helps me to send the ICMPv6 packet. this is given in rfc2461 section 4.3 & 7.2.2

Any help on this??
 
  


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
PPTP server sending the weird PPTP header data in 'Out-going-call-reply' varlu Linux - Networking 0 10-14-2009 07:53 AM
Can't use ipv6 although getting address bingmou Linux - Networking 2 07-02-2009 05:58 AM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 02:25 PM
sending T'bird email with x-face in header noranthon Linux - Software 1 02-01-2007 09:40 PM
IPv6 address ????????? hegdeshashi Programming 3 06-19-2006 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration