Date: Mon, 4 Jan 2021 21:47:15 GMT From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 9c0ff6a8bbb5 - main - Remove now-unused RT_GATEWAY* definitions. Message-ID: <202101042147.104LlFNg051731@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=9c0ff6a8bbb5b32db2b8c7afb8bc5212ce717804 commit 9c0ff6a8bbb5b32db2b8c7afb8bc5212ce717804 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2021-01-04 21:45:46 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2021-01-04 21:45:46 +0000 Remove now-unused RT_GATEWAY* definitions. They were used to simplify nexthop transition, hence not needed anymore. --- sys/net/route/nhop.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/net/route/nhop.h b/sys/net/route/nhop.h index 8b5ac7ada072..ce18cc04e163 100644 --- a/sys/net/route/nhop.h +++ b/sys/net/route/nhop.h @@ -157,9 +157,6 @@ struct nhop_object { #define NH_IS_VALID(_nh) RT_LINK_IS_UP((_nh)->nh_ifp) #define NH_IS_NHGRP(_nh) ((_nh)->nh_flags & NHF_MULTIPATH) -#define RT_GATEWAY(_rt) ((struct sockaddr *)&(_rt)->rt_nhop->gw4_sa) -#define RT_GATEWAY_CONST(_rt) ((const struct sockaddr *)&(_rt)->rt_nhop->gw4_sa) - #define NH_FREE(_nh) do { \ nhop_free(_nh); \ /* guard against invalid refs */ \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101042147.104LlFNg051731>