Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 07-28-2011, 07:14 AM   #1
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.

Old 07-30-2011, 07:07 AM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,604

Rep: Reputation: 203Reputation: 203Reputation: 203
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.

Old 03-13-2013, 12:46 PM   #3
LQ Newbie
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
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
post your email address
send me your mail address on my email address
wating for your 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 09:06 AM
Perl: UDP server receive / send packet to host superm@n Programming 2 04-02-2010 08:22 AM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 11:40 PM
patching of MPLS patch with kernel-2.4.20-6 priyanka.chandel Linux - Kernel 0 12-15-2006 03:14 AM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 08:31 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:55 PM.

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