X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=pbrd%2Fpbr_nht.h;h=4ef41cede7dd76a2fca02758e336787271cae2ce;hb=0ad79902fc5f4219feef1fec2ee7b5dfd3f34f98;hp=e6fdbfd04cb838ffb9a0e541c6294550115194c1;hpb=29be7d92cc65e685bf3e543b1033729fc7b39235;p=mirror_frr.git diff --git a/pbrd/pbr_nht.h b/pbrd/pbr_nht.h index e6fdbfd04..4ef41cede 100644 --- a/pbrd/pbr_nht.h +++ b/pbrd/pbr_nht.h @@ -56,9 +56,13 @@ extern void pbr_nht_write_table_range(struct vty *vty); extern void pbr_nht_set_tableid_range(uint32_t low, uint32_t high); /* - * Get the next tableid to use for installation + * Get the next tableid to use for installation. + * + * peek + * If set to true, retrieves the next ID without marking it used. The next + * call will return the same ID. */ -extern uint32_t pbr_nht_get_next_tableid(void); +extern uint32_t pbr_nht_get_next_tableid(bool peek); /* * Get the next rule number to use for installation */ @@ -113,5 +117,10 @@ extern void pbr_nht_show_nexthop_group(struct vty *vty, const char *name); */ extern void pbr_nht_nexthop_update(struct zapi_route *nhr); +/* + * When we get a callback from zebra about an interface status update. + */ +extern void pbr_nht_nexthop_interface_update(struct interface *ifp); + extern void pbr_nht_init(void); #endif