Package: radvd
Version: 1:0.7.3-1
Followup-For: Bug #301543

typecast in gram.y casuses 0x2002 prefix to end up in the wrong bytes of
s6_addr. fix:

--- radvd-0.7.3.ORIG/gram.y     2004-10-26 01:30:34.000000000 -0400
+++ radvd-0.7.3/gram.y  2005-05-13 11:52:33.000000000 -0400
@@ -339,7 +339,7 @@
                                        prefix->enabled = 0;
                                } else
                                {
-                                       *((uint32_t *)(prefix->Prefix.s6_addr)) 
= htons(0x2002);
+                                       *((uint16_t *)(prefix->Prefix.s6_addr)) 
= htons(0x2002);
                                        memcpy( prefix->Prefix.s6_addr + 2, 
&dst, sizeof( dst ) );
                                }
                        }

For reference, my /etc/radvd.conf:

interface eth1
{
        IgnoreIfMissing on;
        AdvSendAdvert on;
        
        # Advertise at least every 30 seconds
        MaxRtrAdvInterval 30;
        
        prefix 0:0:0:ba5e::/64
        {
                AdvOnLink on;
                AdvAutonomous on;
                Base6to4Interface eth0;
                
                # Very short lifetimes for dynamic addresses
                AdvValidLifetime 300;
                AdvPreferredLifetime 120;
        };
};

Thanks.
-sam

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.8-powerpc
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages radvd depends on:
ii  libc6                       2.3.2.ds1-21 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to