LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-07-2016, 09:48 AM   #1
chakka.lokesh
Member
 
Registered: Mar 2008
Distribution: Ubuntu
Posts: 270

Rep: Reputation: 33
promiscuous mode in vlan


I am in need of capturing all vlan traffic irrespective of matching vlan tag.

if it is just plain Ethernet traffic, I was setting the card in promiscuous mode and able to capture all the traffic.

But in case of vlan, I am not able to set 0xfff because of the following error:

Quote:
$ sudo vconfig add eth0 4095
ERROR: trying to add VLAN #4095 to IF -:eth0:- error: Numerical result out of range
if i try to capture the traffic directly from eth0, I am seeing vlan tag is getting stripped and I am receiving just plain traffic.

I am sending/capturing the traffic using raw ethernet sockets:

Quote:
socket( PF_PACKET, SOCK_RAW|SOCK_NONBLOCK, htons( ETH_P_ALL ) )
Could some one help me understand if there is a way to receive all the vlan packets irrespective of tag ?

I am using ubuntu 16

Please let me know if any more info is required
 
  


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
configuring for promiscuous mode eschrock Linux - Networking 2 11-11-2009 12:49 AM
Promiscuous Mode: Yes or No? AvatarofVirgo Linux - Security 3 02-22-2005 07:22 PM
promiscuous mode question zsoltrenyi Linux - Networking 2 01-25-2005 05:57 AM
eth0 promiscuous mode? emetib Linux - Networking 9 08-26-2004 06:51 PM
eth0 promiscuous mode susx Linux - Networking 11 09-22-2001 12:39 AM

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

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