From a78cc65fef65d2b2a453f5adcae1420045f06d16 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 28 Mar 2007 11:53:49 +0000 Subject: IPv6 ttl setting via IPV6_HOPLIMIT no longer works. Switch to IPV6_UNICAST_HOPS which does the same thing and does not fail. OK henning@ found by Jon Morby --- usr.sbin/bgpd/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/bgpd') diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 22042652d02..9f8e7718d22 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.271 2007/03/16 14:06:57 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.272 2007/03/28 11:53:48 claudio Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer @@ -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"); -- cgit v1.2.3