LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-11-2012, 04:25 PM   #1
srinuvunnava
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Passing VLAN Information to app


I am trying to send VLAN Information to application using the socket of attributes (PF_PACKET,SOCK_RAW,htons(ETH_P_ALL)). when I am sending the DHCPDiscover Packet over a VLAN Interface from another machine; my application is receiving only 342 bytes instead the original 346 bytes (including VLAN Header). Kernel is removing the VLAN information of 4 bytes. How can I get the VLAN information to uspace without using the libpcap library ? Looking for some suggestions.
 
  


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
passing control and data information on separate channels in ns2 humairaafzal73 Linux - Software 0 02-26-2012 08:42 AM
[SOLVED] bash scripting passing information between two files. hellfire73 Linux - Newbie 12 10-30-2009 04:23 PM
DHCP Config for VLAN's using 1NIC and non VLAN router. scottgutman Linux - Networking 1 07-22-2009 01:41 AM
data structure for (app, port) information. linuxdoniv Programming 1 03-11-2008 03:51 AM
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 02:51 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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