]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_zlookup.c
bgpd/pimd: fix zAPI parsing
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 16 Sep 2015 07:42:36 +0000 (09:42 +0200)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 26 May 2016 00:38:33 +0000 (20:38 -0400)
commit5511908940c510e65dbd897a3c6d9de21315a797
treef50e61c7b826380cc75e6bb047877430da0338d8
parent7960fa8f754a43a3e0a9c48de21af38051bc1d70
bgpd/pimd: fix zAPI parsing

Commit c99f3481a598 has changed the API. Now, the vrfid has been added in
the header, thus we must read it before parsing the rest of the message.

To ease code maintenance, let's add a new function to read a zAPI header.

Fixes: c99f3481a598 ("*: add VRF ID in the API message header")
Reported-by: Martin Winter <mwinter@opensourcerouting.org>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Tested-by: Martin Winter <mwinter@opensourcerouting.org>
lib/zclient.c
lib/zclient.h
pimd/pim_zlookup.c