Re: SOCK_RAW does not receive broadcast (with VLAN unless PROMISC)
From: Gil Beniamini <hidden>
Date: 2009-06-10 15:29:44
Also in:
lkml
Paul, Patrick, THANKS! using "vconfig set_name_type" DEV_PLUS_VID_NO_PAD" enable successful "vconfig add eth1 <same-id as on eth0>". And now finally without PROMISC the application receive BROADCASTs on this VLAN. Many Thanks, Gil 2009/6/10 Paul Rolland [off-list ref]:
Hello, On Wed, 10 Jun 2009 17:48:40 +0300 Gil Beniamini [off-list ref] wrote:quoted
Dear Patrick, Below is my try to add vlan-id 24 on eth1, followed by "ip -d link list": root@StudentsHPA:/home/hpa# vconfig add eth1 24 ERROR: trying to add VLAN #24 to IF -:eth1:- error: File existsHere is an output from my vconfig : bash-2.05$ /usr/local/witbe/sbin/vconfig Expecting argc to be 3-5, inclusive. Was: 1 Usage: add [interface-name] [vlan_id] rem [vlan-name] set_flag [interface-name] [flag-num] [0 | 1] set_egress_map [vlan-name] [skb_priority] [vlan_qos] set_ingress_map [vlan-name] [skb_priority] [vlan_qos] set_name_type [name-type] ... * bind-type: PER_DEVICE # Allows vlan 5 on eth0 and eth1 to be unique. PER_KERNEL # Forces vlan 5 to be unique across all devices. But the documentation is lacking information on how to set this :( Have a look at the source of vconfig should help... Paul -- Paul Rolland E-Mail : rol(at)witbe.net CTO - Witbe.net SA Tel. +33 (0)1 47 67 77 77 Les Collines de l'Arche Fax. +33 (0)1 47 67 77 99 F-92057 Paris La Defense RIPE : PR12-RIPE This is dedicated to all the ones who want to control Internet, its content or its usage : "I worry about my child and the Internet all the time, even though she's too young to have logged on yet. Here's what I worry about. I worry that 10 or 15 years from now, she will come to me and say 'Daddy, where were you when they took freedom of the press away from the Internet?'" --Mike Godwin, Electronic Frontier Foundation