mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-04 15:37:05 +00:00
zebra: Fix last sent command to protocol
With the addition of VRF's we were not properly storing the last sent command to individual protocols from zebra. This commit fixes this: Pre-Fix: Client: bgp ------------------------ FD: 14 Route Table ID: 0 Connect Time: 00:10:51 Not registered for Nexthop Updates Last Msg Rx Time: 00:10:51 Last Msg Tx Time: 00:00:04 Last Rcvd Cmd: ZEBRA_REDISTRIBUTE_ADD Last Sent Cmd: (null) Post-Fix: Client: bgp ------------------------ FD: 14 Route Table ID: 0 Connect Time: 00:02:42 Not registered for Nexthop Updates Last Msg Rx Time: 00:02:42 Last Msg Tx Time: 00:00:09 Last Rcvd Cmd: ZEBRA_REDISTRIBUTE_ADD Last Sent Cmd: ZEBRA_INTERFACE_UP Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
95ff066772
commit
80ab3edfbb
@ -108,7 +108,7 @@ zebra_server_send_message(struct zserv *client)
|
||||
return -1;
|
||||
|
||||
stream_set_getp(client->obuf, 0);
|
||||
client->last_write_cmd = stream_getw_from(client->obuf, 4);
|
||||
client->last_write_cmd = stream_getw_from(client->obuf, 6);
|
||||
switch (buffer_write(client->wb, client->sock, STREAM_DATA(client->obuf),
|
||||
stream_get_endp(client->obuf)))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user