LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-09-2015, 08:36 AM   #1
fltempln
LQ Newbie
 
Registered: May 2015
Posts: 1

Rep: Reputation: Disabled
Hairpinning through net/ipv6/sit.c


Hello,

In ipip6_rcv() of net/ipv6/sit.c, I am trying to institute "hairpinning".
By that, I mean that when ipip6_rcv() processes an IPv6-in-IPv4
encapsulated packet I examine IPv6 routing to see if the packet should
go back out the same interface it arrived on. If so directed by routing,
I want to rewrite the IPv4 source and destination addresses and directly
call ip_local_output(skb) instead of calling netif_rx(skb). But, when I
call ip_local_output(skb), the system locks up.

Any ideas on what is happening and how to fix it? Or, any ideas on other
ways to do this kind of hairpinning?

Thanks - Fred
fltemplin@gmail.com
 
  


Reply



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
Is there a /proc/net/... file for IPv6 similar to /proc/net/arp for mac addresses? systemlordanubis Linux - Networking 1 03-02-2012 06:36 PM
net-pf-10 and why is it related to ipv6 HadroLepton Linux - General 3 10-05-2011 06:24 AM
compiling kernel 2.6.8.1, net/ipv6/route.c: Error: request for member `lock' yoolee Linux - Kernel 0 11-15-2007 04:20 PM
IPv6 over IPv4 tunneling - GRE vs SIT kogi Linux - Networking 1 08-10-2005 02:22 AM
perl: Net::Ping and ipv6 Kostko Programming 1 05-11-2003 12:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:09 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