diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-08-20 09:08:25 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-09-02 10:33:23 -0400 |
| commit | f2595bd5057190f846b3bbff78bf44e538d46a2c (patch) | |
| tree | 02e424ff4c66a84b2d8e0e330fc5e89958496f8e /zebra/rt_netlink.c | |
| parent | a7d2146a41fa0f0f3929f43c25b186a7f43b1d84 (diff) | |
zebra: Convert to `struct zebra_nhlfe` as per our internal standard
We do not use typedef's to talk about structures as per our standard.
Fixing.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/rt_netlink.c')
| -rw-r--r-- | zebra/rt_netlink.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index a8b4b54d29..e36f320ad9 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -1731,12 +1731,11 @@ static bool _netlink_route_build_multipath(const struct prefix *p, return true; } -static inline bool _netlink_mpls_build_singlepath(const struct prefix *p, - const char *routedesc, - const zebra_nhlfe_t *nhlfe, - struct nlmsghdr *nlmsg, - struct rtmsg *rtmsg, - size_t req_size, int cmd) +static inline bool +_netlink_mpls_build_singlepath(const struct prefix *p, const char *routedesc, + const struct zebra_nhlfe *nhlfe, + struct nlmsghdr *nlmsg, struct rtmsg *rtmsg, + size_t req_size, int cmd) { int bytelen; uint8_t family; @@ -1751,7 +1750,7 @@ static inline bool _netlink_mpls_build_singlepath(const struct prefix *p, static inline bool _netlink_mpls_build_multipath(const struct prefix *p, const char *routedesc, - const zebra_nhlfe_t *nhlfe, + const struct zebra_nhlfe *nhlfe, struct nlmsghdr *nlmsg, size_t req_size, struct rtmsg *rtmsg, const union g_addr **src) { @@ -4252,7 +4251,7 @@ ssize_t netlink_mpls_multipath_msg_encode(int cmd, struct zebra_dplane_ctx *ctx, { mpls_lse_t lse; const struct nhlfe_list_head *head; - const zebra_nhlfe_t *nhlfe; + const struct zebra_nhlfe *nhlfe; struct nexthop *nexthop = NULL; unsigned int nexthop_num; const char *routedesc; |
