login
Header Space

 
 

Re: IPv6 and OpenBGPD - Protocol not available

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Date: Tuesday, March 27, 2007 - 1:08 pm

* Jon Morby <jon@fido.net> [2007-03-27 18:47]:

well, not necessarily, I don't have any native v6 sessions, and neither 
has claudio, so errors might go undetected


wow.

that comes from this code fragment in session.c:session_setup_socket

        if (p->conf.ebgp && p->conf.remote_addr.af == AF_INET6)    
                /* set hoplimit to foreign router's distance */
                if (setsockopt(p->fd, IPPROTO_IPV6, IPV6_HOPLIMIT, &ttl,
                    sizeof(ttl)) == -1) {
                        log_peer_warn(&p->conf,
                            "session_setup_socket setsockopt hoplimit");  
                        return (-1);
                }

ttl is initialized to distance, 3 in your case.
why would setsockopt IPV6_HOPLIMIT 3 fail???

you can pbly get away with just #if 0'ing that code block (or change 
the first line to "if (0 && p->conf.ebgp && ..."), but I still don't 
understand what the problem is.

-- 
Henning Brauer, hb@bsws.de, henning@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
IPv6 and OpenBGPD - Protocol not available, Jon Morby, (Tue Mar 27, 12:32 pm)
Re: IPv6 and OpenBGPD - Protocol not available, Claudio Jeker, (Tue Mar 27, 1:24 pm)
Re: IPv6 and OpenBGPD - Protocol not available, Henning Brauer, (Wed Mar 28, 4:40 am)
Re: IPv6 and OpenBGPD - Protocol not available, Claudio Jeker, (Wed Mar 28, 5:56 am)
Re: IPv6 and OpenBGPD - Protocol not available, Jon Morby, (Tue Mar 27, 2:12 pm)
Re: IPv6 and OpenBGPD - Protocol not available, Claudio Jeker, (Tue Mar 27, 2:25 pm)
Re: IPv6 and OpenBGPD - Protocol not available, Henning Brauer, (Wed Mar 28, 4:41 am)
Re: IPv6 and OpenBGPD - Protocol not available, Claudio Jeker, (Wed Mar 28, 5:47 am)
Re: IPv6 and OpenBGPD - Protocol not available, Henning Brauer, (Wed Mar 28, 6:00 am)
Re: IPv6 and OpenBGPD - Protocol not available, Jon Morby, (Tue Mar 27, 2:45 pm)
Re: IPv6 and OpenBGPD - Protocol not available, Henning Brauer, (Tue Mar 27, 1:08 pm)
speck-geostationary