Remove now-unused RT_GATEWAY* definitions.

They were used to simplify nexthop transition, hence not needed
 anymore.
This commit is contained in:
Alexander V. Chernikov 2021-01-04 21:45:46 +00:00
parent 459511895e
commit 9c0ff6a8bb

View File

@ -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 */ \