diff options
| author | Russ White <russ@riw.us> | 2018-02-27 08:32:42 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-27 08:32:42 -0500 |
| commit | 8bc92a3ec7e3a8202416c5d23504e09e3ff42799 (patch) | |
| tree | f4e75f57317b02f59bbb11890241efd63acf1c65 /lib/zclient.c | |
| parent | 7a684566d4b6bd031933b211df8ac503509401ba (diff) | |
| parent | 28b11f81061b12f599daf8016d948ca59a2f38cc (diff) | |
Merge pull request #1799 from donaldsharp/route_notify_owner
Route notify owner
Diffstat (limited to 'lib/zclient.c')
| -rw-r--r-- | lib/zclient.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 9260e0b3ba..ad91eb504b 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -1210,14 +1210,20 @@ stream_failure: } bool zapi_route_notify_decode(struct stream *s, struct prefix *p, + uint32_t *tableid, enum zapi_route_notify_owner *note) { + uint32_t t; + STREAM_GET(note, s, sizeof(*note)); STREAM_GETC(s, p->family); STREAM_GETC(s, p->prefixlen); STREAM_GET(&p->u.prefix, s, - PSIZE(p->prefixlen)); + prefix_blen(p)); + STREAM_GETL(s, t); + + *tableid = t; return true; @@ -2363,9 +2369,9 @@ static int zclient_read(struct thread *thread) vrf_id); break; case ZEBRA_ROUTE_NOTIFY_OWNER: - if (zclient->notify_owner) - (*zclient->notify_owner)(command, zclient, - length, vrf_id); + if (zclient->route_notify_owner) + (*zclient->route_notify_owner)(command, zclient, length, + vrf_id); break; default: break; |
