LinuxQuestions.org
Help answer threads with 0 replies.
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 12-12-2011, 10:12 PM   #1
pbalakan
LQ Newbie
 
Registered: Dec 2011
Posts: 11

Rep: Reputation: Disabled
Need help in changing mac for the incoming packet in kernel.


Hi,
Iam new to this linux form. Need a help in n/w in kernel..

I have a linux machine where one of the interfaces (eth2) is in L3 mode.
So, packets entering this interface should have dest-mac as that of the eth2 mac, so that it can be taken into upper layers (L3/L4). I have a case, where packets can have different dest-mac but it should be taken into Layer3/Layer4 level. Iam not sure of any configs in linux that can help here. Is there any?
I tried changing the d-mac of the packet in the ethernet driver of the kernel using skb. But, I could see the packets getting dropped in the kernel (NET_RX_DROP). I suppose, the FCS validation of the packet happens in the controller. Do I need to take care of any other field in skb also here?
Your help is really appreciated. Thanks much. !!

-thanks
Prabhu Balakannan.
 
Old 12-12-2011, 11:39 PM   #2
pbalakan
LQ Newbie
 
Registered: Dec 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Issue is resolved. Iam able to send packet with diff dest-mac to IP level.
 
  


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
How can redirect incoming packet to another host? paradox_mgh21 Linux - Networking 5 10-14-2011 05:08 AM
Rejecting continuously changing incoming mail in postfix Tarikc Linux - Software 1 04-05-2011 10:09 AM
Block incoming connections from 1 Mac address ????? jasem200 Linux - Networking 2 09-17-2009 02:35 PM
Why packet incoming interface (sk_buff->dev) effects application reception? farkeu Linux - Networking 1 08-22-2009 06:11 PM
Packet filter using MAC Address aashish.verma Linux - Networking 1 05-30-2006 07:41 AM

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

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