[radvd-devel-l] [Niko Tyni <ntyni+radvd@mappi.helsinki.fi>] Bug#166002: radvd: doesn't allow VLAN interface names

Andreas Rottmann radvd-devel-l@litech.org
23 Oct 2002 13:05:58 +0200


--=-=-=


I just got this Debian bug report - it even contains a patch, so it
should be trivial to fix.


--=-=-=
Content-Type: message/rfc822
Content-Disposition: inline

X-From-Line: debbugs@master.debian.org Wed Oct 23 11:53:57 2002
Return-path: <debbugs@master.debian.org>
Envelope-to: andy@localhost
Delivery-date: Wed, 23 Oct 2002 11:53:57 +0200
Received: from localhost ([127.0.0.1] ident=andy)
	by alice.rhinosaur.lan with esmtp (Exim 3.36 #1 (Debian))
	id 184ID7-0000Dt-01	for <andy@localhost>; Wed, 23 Oct 2002 11:53:57 +0200
X-Flags: 0000
Delivered-To: GMX delivery to a.rottmann@gmx.at
Received: from pop.gmx.net [213.165.64.20]
	by localhost with POP3 (fetchmail-6.1.0)
	for andy@localhost (single-drop); Wed, 23 Oct 2002 11:53:57 +0200 (CEST)
Received: (qmail 21415 invoked by uid 0); 23 Oct 2002 07:48:05 -0000
Received: from master.debian.org (65.125.64.135)
  by mx0.gmx.net (mx007-rz3) with SMTP; 23 Oct 2002 07:48:05 -0000
Received: from debbugs by master.debian.org with local (Exim 3.12 1 (Debian))
	id 184GFH-0000z7-00; Wed, 23 Oct 2002 02:48:03 -0500
X-Loop: owner@bugs.debian.org
Subject: Bug#166002: radvd: doesn't allow VLAN interface names
Reply-To: Niko Tyni <ntyni+radvd@mappi.helsinki.fi>, 166002@bugs.debian.org
Resent-From: Niko Tyni <ntyni+radvd@mappi.helsinki.fi>
Original-Sender: Niko <ntyni@cc.helsinki.fi>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Andreas Rottmann <rotty@debian.org>, radvd@packages.qa.debian.org
Resent-Date: Wed, 23 Oct 2002 07:48:01 GMT
Resent-Message-ID: <handler.166002.B.10353589552687@bugs.debian.org>
X-Debian-PR-Message: report 166002
X-Debian-PR-Package: radvd
X-Debian-PR-Keywords: patch
Received: via spool by submit@bugs.debian.org id=B.10353589552687
          (code B ref -1); Wed, 23 Oct 2002 07:48:01 GMT
From: Niko Tyni <ntyni+radvd@mappi.helsinki.fi>
To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailer: reportbug 1.50
Date: Wed, 23 Oct 2002 10:42:31 +0300
Message-Id: <E184G9v-0000EI-00@ip6-rtr>
Sender: Niko <ntyni@cc.helsinki.fi>
Delivered-To: submit@bugs.debian.org
Resent-Sender: Debian BTS <debbugs@master.debian.org>
X-Spam-Status: No, hits=-1.5 required=5.0
	tests=BUGS_DEBIAN_ORG,DEBIAN_BTS_BUG,FORGED_RCVD_FOUND,
	      PATCH_UNIFIED_DIFF,RESENT_TO,SPAM_PHRASE_01_02,X_LOOP	version=2.43
X-Spam-Level: 
Lines: 62
Xref: alice.rhinosaur.lan mail.private:2584
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Package: radvd
Version: 1:0.7.1-5
Severity: normal
Tags: patch

If an 802.1Q VLAN interface is specified in the config file, radvd exits
with parse error.

VLAN interfaces are denoted by default with a dot in the interface name, 
eg. eth0.9 for VLAN 9 on interface eth0. See
<URL:http://www.wanfear.com/~greear/vlan.html> for more info.

Transcript:

ip6-rtr:~# cat radvd.conf.example 
interface eth0.9
{
   AdvSendAdvert on;
   prefix fec0::/64
   {
   };
};   
ip6-rtr:~# radvd -C radvd.conf.example -m stderr
[Oct 23 10:35:05] radvd: version 0.7.1 started
[Oct 23 10:35:05] radvd: parse error in radvd.conf.example, line 1: .
[Oct 23 10:35:05] radvd: syntax error in config file: radvd.conf.example
ip6-rtr:~# ifconfig eth0.9
eth0.9    Link encap:Ethernet  HWaddr 00:D0:B7:B2:2E:FC  
          inet6 addr: fe80::2d0:b7ff:feb2:2efc/10 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1055028 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:156138596 (148.9 MiB)  TX bytes:6970 (6.8 KiB)

Patch:

*** patch-vlan
--- radvd-0.7.1/scanner.l	2002/10/23 07:01:35	1.1
+++ radvd-0.7.1/scanner.l	2002/10/23 07:02:08
@@ -34,7 +34,7 @@
 addr3		({hexdigit}{1,4}":"){7}{hexdigit}{1,4}
 addr		({addr1}|{addr2}|{addr3})
 whitespace	([ \t])+
-string		[a-z]([a-z]|{digit})*(":"{digit}+)?
+string		[a-z]([a-z]|{digit})*("."{digit}+)?(":"{digit}+)?
 %%
 
 #.*$			{/* ignore comments */}


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux ip6-rtr 2.4.19 #1 Tue Oct 22 17:31:28 EEST 2002 i586
Locale: LANG=C, LC_CTYPE=C

Versions of packages radvd depends on:
ii  libc6                         2.2.5-11.2 GNU C Library: Shared libraries an




--=-=-=



         _/\_
Regards, Andy (wearing his Debian RADVD maintainer hat)
-- 
Andreas Rottmann         | Dru@ICQ        | 118634484@ICQ | a.rottmann@gmx.at
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

--=-=-=--