*
* \returns -1 on failure or the number of bytes written to buf.
*/
-ssize_t
-netlink_nexthop_encode(uint16_t cmd, const struct zebra_dplane_ctx *ctx,
- void *buf, size_t buflen)
+ssize_t netlink_nexthop_encode(uint16_t cmd, const struct zebra_dplane_ctx *ctx,
+ void *buf, size_t buflen)
{
struct {
struct nlmsghdr n;
}
if (!RSYSTEM_ROUTE(dplane_ctx_get_type(ctx))) {
- netlink_route_multipath(cmd, ctx, nl_pkt, sizeof(nl_pkt),
- false, false);
+ netlink_route_multipath(cmd, ctx, nl_pkt, sizeof(nl_pkt), false,
+ false);
ret = netlink_talk_info(netlink_talk_filter,
(struct nlmsghdr *)nl_pkt,
dplane_ctx_get_ns(ctx), 0);
extern int netlink_mpls_multipath(int cmd, struct zebra_dplane_ctx *ctx);
extern ssize_t netlink_route_multipath(int cmd, struct zebra_dplane_ctx *ctx,
- uint8_t *data, size_t datalen,
- bool fpm, bool force_nhg);
+ uint8_t *data, size_t datalen, bool fpm,
+ bool force_nhg);
extern ssize_t netlink_macfdb_update_ctx(struct zebra_dplane_ctx *ctx,
uint8_t *data, size_t datalen);
*
* Return: Result status
*/
-int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx,
- enum dplane_op_e op,
+int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op,
struct nhg_hash_entry *nhe)
{
struct zebra_vrf *zvrf = NULL;
struct route_node *rn, struct route_entry *re);
/* Encode next hop information into data plane context. */
-int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx,
- enum dplane_op_e op,
+int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op,
struct nhg_hash_entry *nhe);
/* Retrieve the limit on the number of pending, unprocessed updates. */