diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-03 04:56:10 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-03 04:59:26 -0400 |
| commit | 80ab3edfbbfa655ccf3baf360a1b98e281cdcf84 (patch) | |
| tree | e7c68a085d954766b7c816a9c03df3c69e7bd44f | |
| parent | 95ff066772b10e534ea235482d1f93c97bc49d85 (diff) | |
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>
| -rw-r--r-- | zebra/zserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c index 8bc90130be..6e4f9bbe7d 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -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))) { |
