[<prev] [next>] [day] [month] [year] [list]
Message-ID: <91ac27070906100829l683c69fbw93bb78813ee97ced@mail.gmail.com>
Date: Wed, 10 Jun 2009 18:29:34 +0300
From: Gil Beniamini <gil.beniamini@...il.com>
To: Paul Rolland <rol@...be.net>
Cc: Patrick McHardy <kaber@...sh.net>,
Brent Cook <bcook@...intsys.com>,
David Miller <davem@...emloft.net>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: SOCK_RAW does not receive broadcast (with VLAN unless PROMISC)
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 <rol@...be.net>:
> Hello,
>
> On Wed, 10 Jun 2009 17:48:40 +0300
> Gil Beniamini <gil.beniamini@...il.com> wrote:
>
>> Dear Patrick,
>> Below is my try to add vlan-id 24 on eth1, followed by "ip -d link list":
>> root@...dentsHPA:/home/hpa# vconfig add eth1 24
>> ERROR: trying to add VLAN #24 to IF -:eth1:- error: File exists
>
> Here 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
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists