Date: Wed, 25 Mar 2009 00:05:55 GMT From: Alexander Gorlov <digital@tushino.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/133031: ports/net/igmpproxy "must be at least 2 Vif's where one is upstream" +solve(?) Message-ID: <200903250005.n2P05tu6000964@www.freebsd.org> Resent-Message-ID: <200903250010.n2P0A2KX063909@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 133031 >Category: ports >Synopsis: ports/net/igmpproxy "must be at least 2 Vif's where one is upstream" +solve(?) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 25 00:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alexander Gorlov >Release: 7.1-RELEASE i386 >Organization: >Environment: FreeBSD sevastopol.int.amais.org.ru 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Tue Mar 24 01:20:18 MSK 2009 root@sevastopol.int.amais.org.ru:/usr/src/sys/i386/compile/AMAIS i386 >Description: Interfaces in the config file is not matched with the real interfaces. config: [code] ##------------------------------------------------------ ## Enable Quickleave mode (Sends Leave instantly) ##------------------------------------------------------ quickleave ##------------------------------------------------------ ## Configuration for fxp0 (Upstream Interface) ##------------------------------------------------------ phyint fxp0 upstream altnet 224.0.0.0/8 altnet 234.0.0.0/8 altnet 239.0.0.0/8 altnet 77.0.0.0/8 ##------------------------------------------------------ ## Configuration for re0 (Downstream Interface) ##------------------------------------------------------ phyint re0 downstream ##------------------------------------------------------ ## Configuration for fxp1 (Disabled Interface) ##------------------------------------------------------ phyint fxp1 disabled phyint tun0 disabled phyint lo0 disabled [/code] run: [code] [alti@devel ~]$ igmpproxy -d igmpproxy, Version 0.1 beta2, Build 090325 Copyright 2005 by Johnny Egeland <johnny@rlo.org> Distributed under the GNU GENERAL PUBLIC LICENSE, Version 2 - check GPL.txt Debu: Searching for config file at '/usr/local/etc/igmpproxy.conf' Debu: Config: Quick leave mode enabled. Debu: Config: Got a phyint token. Debu: Config: IF: Config for interface fxp0. Debu: Config: IF: Got upstream token. Debu: Config: IF: Got altnet token 224.0.0.0/8. Debu: Config: IF: Altnet: Parsed altnet to 224/8. Debu: Config: IF: Got altnet token 234.0.0.0/8. Debu: Config: IF: Altnet: Parsed altnet to 234/8. Debu: Config: IF: Got altnet token 239.0.0.0/8. Debu: Config: IF: Altnet: Parsed altnet to 239/8. Debu: Config: IF: Got altnet token 77.0.0.0/8. Debu: Config: IF: Altnet: Parsed altnet to 77/8. Debu: IF name : fxp0 Debu: Next ptr : 0 Debu: Ratelimit : 0 Debu: Threshold : 1 Debu: State : 1 Debu: Allowednet ptr : 2820c030 Debu: Config: Got a phyint token. Debu: Config: IF: Config for interface re0. Debu: Config: IF: Got downstream token. Debu: IF name : re0 Debu: Next ptr : 0 Debu: Ratelimit : 0 Debu: Threshold : 1 Debu: State : 2 Debu: Allowednet ptr : 0 Debu: Config: Got a phyint token. Debu: Config: IF: Config for interface fxp1. Debu: Config: IF: Got disabled token. Debu: IF name : fxp1 Debu: Next ptr : 0 Debu: Ratelimit : 0 Debu: Threshold : 1 Debu: State : 0 Debu: Allowednet ptr : 0 Debu: Config: Got a phyint token. Debu: Config: IF: Config for interface tun0. Debu: Config: IF: Got disabled token. Debu: IF name : tun0 Debu: Next ptr : 0 Debu: Ratelimit : 0 Debu: Threshold : 1 Debu: State : 0 Debu: Allowednet ptr : 0 Debu: Config: Got a phyint token. Debu: Config: IF: Config for interface lo0. Debu: Config: IF: Got disabled token. Debu: IF name : lo0 Debu: Next ptr : 0 Debu: Ratelimit : 0 Debu: Threshold : 1 Debu: State : 0 Debu: Allowednet ptr : 0 Debu: Adding Physical Index value of IF 're0' is 1 Debu: buildIfVc: Interface re0 Addr: 172.16.1.1, Flags: 0xffff8843, Network: 172.16.1.0/25 Debu: Adding Physical Index value of IF 'fxp0' is 2 Debu: buildIfVc: Interface fxp0 Addr: 10.80.12.17, Flags: 0xffff8843, Network: 10.80.12/18 Debu: Adding Physical Index value of IF 'fxp1' is 3 Debu: buildIfVc: Interface fxp1 Addr: 172.16.1.129, Flags: 0xffff8843, Network: 172.16.1.128/25 Debu: Adding Physical Index value of IF 'lo0' is 5 Debu: buildIfVc: Interface lo0 Addr: 127.0.0.1, Flags: 0xffff8049, Network: 127/8 Debu: Adding Physical Index value of IF 'tun0' is 7 Debu: buildIfVc: Interface tun0 Addr: x.x.x.x, Flags: 0xffff8051, Network: x.x.x.x/32 Debu: Found config for re0 Note: adding VIF, Ix 0 Fl 0x0 IP 0x011510ac re0, Threshold: 1, Ratelimit: 0 Debu: Network for [re0] : 172.16.1.0/25 Note: adding VIF, Ix 1 Fl 0x0 IP 0xa7c0500a fxp0, Threshold: 1, Ratelimit: 0 Debu: Network for [fxp0] : 10.80.12/18 Note: adding VIF, Ix 2 Fl 0x0 IP 0x811510ac fxp1, Threshold: 1, Ratelimit: 0 Debu: Network for [fxp1] : 172.16.1.128/25 Note: adding VIF, Ix 3 Fl 0x0 IP 0x9b07fa59 tun0, Threshold: 1, Ratelimit: 0 Debu: Network for [tun0] : x.x.x.x/32 ERRO: There must be at least 2 Vif's where one is upstream. (vifcount 4, upStreamVif -1) [/code] >How-To-Repeat: In my configuration file prescribed 5 interfaces are likely to experience a problem when using a large number of interfaces. >Fix: Most likely reason is the small length of line available to store the names of the interface in the 244 line config.c I believe that the line tmpPtr-> name = (char *) malloc (sizeof (char) * strlen (token)); should be replaced by the tmpPtr-> name = (char *) malloc (sizeof (char) * (strlen (token) + 1)); >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903250005.n2P05tu6000964>