LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-28-2011, 06:14 AM   #1
Sekhar417
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Rep: Reputation: Disabled
How to send/ receive MPLS packet from Kernel.


Hi All,

From Linux Kernel, I would like to send/receive the MPLS packet via Ethernet. This implementation supposed to be done in Linux kernel.

I found one way to send the RAW packet(MPLS packet) by creating RAW socket in kernel.

But this works fins while send, but during receive i will receive all packets then it is difficult to filter the MPLS packtes. So i thought it won't be good solution to filter the MPLS packets.

Can any one give idea, how to do this same in Linux kernel.

Thanks
--Sekhar
 
Old 07-30-2011, 06:07 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
If you want to do something more compilcated with MPLS, it's much better to get the MPLS support in the network stack, not via some special handling.There's no need to use RAW packets, the code just needs to register in the network stack. However, why do you want to re-do the work? There exists a project for MPLS support in Linux kernel. I'm not sure if the patches work well with the latest kernels, but it's IMO much better idea to use the existing code than to redevelop everything.

See http://sourceforge.net/apps/mediawik...itle=Main_Page
 
Old 03-13-2013, 11:46 AM   #3
Cheet
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
sekhar417:
dear friend i need your email address because i have problem in doing my project software based MPLS router, i think you can help me because of your sufficient knowledge about MPLS technology
plz
post your email address
or
send me your mail address on my email address
bkhan1903@gmail.com
wating for your reply
 
  


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
Kernel crashed when the module tries to send IPv6 packet Jpradhan Linux - General 1 10-10-2010 08:06 AM
Perl: UDP server receive / send packet to host superm@n Programming 2 04-02-2010 07:22 AM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
patching of MPLS patch with kernel-2.4.20-6 priyanka.chandel Linux - Kernel 0 12-15-2006 02:14 AM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM


All times are GMT -5. The time now is 01:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration