diff options
Diffstat (limited to 'zebra/rt_netlink.h')
| -rw-r--r-- | zebra/rt_netlink.h | 13 | 
1 files changed, 9 insertions, 4 deletions
diff --git a/zebra/rt_netlink.h b/zebra/rt_netlink.h index d51944f1a4..1c113baee6 100644 --- a/zebra/rt_netlink.h +++ b/zebra/rt_netlink.h @@ -64,6 +64,15 @@ extern ssize_t netlink_macfdb_update_ctx(struct zebra_dplane_ctx *ctx,  extern int netlink_route_change(struct nlmsghdr *h, ns_id_t ns_id, int startup);  extern int netlink_route_read(struct zebra_ns *zns); +/* + * Public api for parsing a route notification message: this notification + * only parses the top-level route attributes, and doesn't include nexthops. + * FPM, for example, is a user. + * Returns <0 if the message should be ignored/skipped. + */ +int netlink_route_notify_read_ctx(struct nlmsghdr *h, ns_id_t ns_id, +				  struct zebra_dplane_ctx *ctx); +  extern int netlink_nexthop_change(struct nlmsghdr *h, ns_id_t ns_id,  				  int startup);  extern int netlink_nexthop_read(struct zebra_ns *zns); @@ -109,10 +118,6 @@ netlink_put_lsp_update_msg(struct nl_batch *bth, struct zebra_dplane_ctx *ctx);  extern enum netlink_msg_status  netlink_put_pw_update_msg(struct nl_batch *bth, struct zebra_dplane_ctx *ctx); -int netlink_route_change_read_unicast_internal(struct nlmsghdr *h, -					       ns_id_t ns_id, int startup, -					       struct zebra_dplane_ctx *ctx); -  #ifdef NETLINK_DEBUG  const char *nlmsg_type2str(uint16_t type);  const char *af_type2str(int type);  | 
