Skip to content

Commit

Permalink
zebra: Continue fpm_read when we decide a netlink message is not needed
Browse files Browse the repository at this point in the history
When FRR receives a netlink message that it decides to stop parsing
it returns a 0 ( instead of a -1 ).  Just make the dplane continue
reading other data instead of aborting the read.

Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Jan 10, 2023
1 parent 6f0898f commit c0275ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zebra/dplane_fpm_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,10 @@ static void fpm_read(struct thread *t)
hdr, 0, false, ctx) != 1) {
dplane_ctx_fini(&ctx);
stream_pulldown(fnc->ibuf);
return;
/*
* Let's continue to read other messages
* Even if we ignore this one.
*/
}
break;
default:
Expand Down

0 comments on commit c0275ab

Please sign in to comment.