LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-31-2010, 07:49 PM   #1
rjcarlson49
LQ Newbie
 
Registered: Aug 2005
Distribution: FC3
Posts: 6

Rep: Reputation: 0
Raw sockets for layer 2 ethernet on a 2.4 kernel


We are trying to add an LLDP-MED client to a 2.4(.31 I think) kernel from Monte Vista. This requires a raw socket (AF_Packet) with an Ethertype of 88cc. The program gets no error messages, but no packets are being sent or received. This same code works on other distributions with newer kernels (CentOS and Ubuntu.)

Does anyone know where the problem might be? Whether anyone has done an LLDP-MED implementation on 2.4?

Thanks in advance.

Bob
 
Old 06-20-2010, 12:14 AM   #2
ggeagle
LQ Newbie
 
Registered: Jun 2008
Location: DaeJeon,Korea
Posts: 5

Rep: Reputation: 0
sorry for my poor english.
This is a part of my english studying....

To understanding 'Ether Type' value in ethernet frame is main concept to solve your problem.

All sytems which want to communicate with TCP/IP compatible way must to have ability to treat three ether type value IPV4(0X0800),ARP(0X0806),RARP(0x8035).
These three values are indispensable to all kernel.
Other point of view, except three of 65536 ether type values,all others are optional.
NOT essential part.regardless of kernel VERSION and linux,window,unix,,,


0x88cc matchs LLDP.
So you can use kernel image which pre compiled inclusive of this routine,or you can insert this into kernel module.

This means if sending system's kernel use LLDP module to construct user data and pass through out ethernet then receiving system's kernel needs LLDP module to unconstruct that data and pass through user program's file discriptor(fd what returned from socket call).

If receiving system has no proper module,then data will be droped and may returns error message like "unknowen protocol".

because of my poor english,I can't describe more detail..

You can find open source LLDP module at search engine.

Last edited by ggeagle; 06-20-2010 at 04:06 AM.
 
  


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
raw sockets in c wee-face Programming 1 02-01-2007 09:35 AM
Raw sockets in standard OpenSuSE 10.0 kernel? klas_a SUSE / openSUSE 1 12-12-2005 09:13 AM
Raw Sockets Srikanth0210 Programming 2 12-05-2005 03:22 AM
Raw Ethernet Sockets alanwolfen Programming 2 01-06-2005 06:51 PM
raw sockets and C wrongman Programming 3 05-04-2004 02:17 PM

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

All times are GMT -5. The time now is 11:27 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
Open Source Consulting | Domain Registration