Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759836AbZFJP3o (ORCPT ); Wed, 10 Jun 2009 11:29:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758263AbZFJP3f (ORCPT ); Wed, 10 Jun 2009 11:29:35 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:63946 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757808AbZFJP3e convert rfc822-to-8bit (ORCPT ); Wed, 10 Jun 2009 11:29:34 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PVRoF5A70hRq9epgdAQ1fAe0hLmGqQaW8mzVqkoJ/JEmQYVC9jom0fuRZs5i/nB0EN Kb1pey0Q3SfcGgpzBcnOZIwxR8b1Z2H7uxrIuORvIBMfMxSG+nRoAA1DotXRwofYfdzc sW1EsUdeGFmWzfVyEzc9ISy+zl6D/FVHCz00M= MIME-Version: 1.0 In-Reply-To: <20090610170108.7710c64b@tux.DEF.witbe.net> References: <91ac27070906081105x30171bedra10d244d382a6934@mail.gmail.com> <4A2E4A32.1060705@trash.net> <91ac27070906090608me50af3bv23b150d8d0cd0080@mail.gmail.com> <200906091430.32294.bcook@bpointsys.com> <91ac27070906100724v25c2328x6b343315358c8e12@mail.gmail.com> <4A2FC40E.4040106@trash.net> <91ac27070906100748p1b2cb6bax56ecc230e556ae96@mail.gmail.com> <20090610170108.7710c64b@tux.DEF.witbe.net> Date: Wed, 10 Jun 2009 18:29:34 +0300 Message-ID: <91ac27070906100829l683c69fbw93bb78813ee97ced@mail.gmail.com> Subject: Re: SOCK_RAW does not receive broadcast (with VLAN unless PROMISC) From: Gil Beniamini To: Paul Rolland Cc: Patrick McHardy , Brent Cook , David Miller , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2317 Lines: 63 Paul, Patrick, THANKS! using "vconfig set_name_type" DEV_PLUS_VID_NO_PAD" enable successful "vconfig add eth1 ". And now finally without PROMISC the application receive BROADCASTs on this VLAN. Many Thanks, Gil 2009/6/10 Paul Rolland : > Hello, > > On Wed, 10 Jun 2009 17:48:40 +0300 > Gil Beniamini wrote: > >> 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 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/