mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 12:37:10 +00:00
lib: Fix notify_owner decode
The notification of the owner was not properly decoding the prefix and as such we were not properly reading the table it was installed into. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
28610f7e44
commit
7a1eb44b30
@ -1213,13 +1213,17 @@ bool zapi_route_notify_decode(struct stream *s, struct prefix *p,
|
|||||||
uint32_t *tableid,
|
uint32_t *tableid,
|
||||||
enum zapi_route_notify_owner *note)
|
enum zapi_route_notify_owner *note)
|
||||||
{
|
{
|
||||||
|
uint32_t t;
|
||||||
|
|
||||||
STREAM_GET(note, s, sizeof(*note));
|
STREAM_GET(note, s, sizeof(*note));
|
||||||
|
|
||||||
STREAM_GETC(s, p->family);
|
STREAM_GETC(s, p->family);
|
||||||
STREAM_GETC(s, p->prefixlen);
|
STREAM_GETC(s, p->prefixlen);
|
||||||
STREAM_GET(&p->u.prefix, s,
|
STREAM_GET(&p->u.prefix, s,
|
||||||
PSIZE(p->prefixlen));
|
prefix_blen(p));
|
||||||
STREAM_GETL(s, *tableid);
|
STREAM_GETL(s, t);
|
||||||
|
|
||||||
|
*tableid = t;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user