Thanks Claudio ... you guys are super stars! :)
Seems to be working a treat
Now to work out the filters :(
/etc/bgpd.conf:796: king bula sez: AF_INET only
796:allow quick to any prefix 2a01:2c0::/32
What's the correct way to ensure your AF_INET6 prefixes are properly
exported?
On 27 Mar 2007, at 18:24, Claudio Jeker wrote:
> Try this diff. It seems to solve the problem for me.
>
> --
> :wq Claudio
>
> Index: session.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/bgpd/session.c,v
> retrieving revision 1.271
> diff -u -p -r1.271 session.c
> --- session.c 16 Mar 2007 14:06:57 -0000 1.271
> +++ session.c 27 Mar 2007 17:10:07 -0000
> @@ -1162,7 +1162,7 @@ session_setup_socket(struct peer *p)
>
> 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,
> + if (setsockopt(p->fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &ttl,
> sizeof(ttl)) == -1) {
> log_peer_warn(&p->conf,
> "session_setup_socket setsockopt hoplimit");