Remove now-unused RT_GATEWAY* definitions.
They were used to simplify nexthop transition, hence not needed anymore.
This commit is contained in:
parent
459511895e
commit
9c0ff6a8bb
@ -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 */ \
|
||||
|
Loading…
Reference in New Issue
Block a user