diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-03-28 11:53:49 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-03-28 11:53:49 +0000 |
commit | a78cc65fef65d2b2a453f5adcae1420045f06d16 (patch) | |
tree | 8158095999950eb0430bfe4f0ff4ee4c1dbabb8c /usr.sbin/bgpd | |
parent | 541ac2665afb844a2f5efa1f8ef95e77e1f44b7a (diff) |
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
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <henning@openbsd.org> @@ -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"); |