]> git.proxmox.com Git - mirror_frr.git/commit - zebra/kernel_netlink.c
zebra: fix netlink batching
authorJakub Urbańczyk <xthaid@gmail.com>
Thu, 27 Aug 2020 19:41:37 +0000 (21:41 +0200)
committerJakub Urbańczyk <xthaid@gmail.com>
Thu, 27 Aug 2020 20:06:14 +0000 (22:06 +0200)
commit2f9dbd3ab35ecd054632ed2b20ce5cad60ed08ae
treec58e26cae557b27bd6ccbcab9810e9d46b2cdd74
parentda2f67007844948e5d0d2ecdf24ae7124468e47a
zebra: fix netlink batching

It was wrongly assumed that the kernel is replying in batches when multiple
requests fail. The kernel sends one error message at a time, so we can
simply keep reading data from the socket as long as possible.

Signed-off-by: Jakub Urbańczyk <xthaid@gmail.com>
zebra/kernel_netlink.c