Skip to content

Commit

Permalink
Merge pull request #13867 from mjstapp/fix_opq_source
Browse files Browse the repository at this point in the history
isisd, ospfd: fix opaque zapi source parsing
  • Loading branch information
ton31337 authored Jun 28, 2023
2 parents 579d00e + 220dc6d commit 07a2b9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions isisd/isis_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,9 +772,9 @@ static int isis_opaque_msg_handler(ZAPI_CALLBACK_ARGS)

switch (info.type) {
case LINK_STATE_SYNC:
STREAM_GETC(s, dst.proto);
STREAM_GETW(s, dst.instance);
STREAM_GETL(s, dst.session_id);
dst.proto = info.src_proto;
dst.instance = info.src_instance;
dst.session_id = info.src_session_id;
dst.type = LINK_STATE_SYNC;
ret = isis_te_sync_ted(dst);
break;
Expand Down
6 changes: 3 additions & 3 deletions ospfd/ospf_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -2161,9 +2161,9 @@ static int ospf_opaque_msg_handler(ZAPI_CALLBACK_ARGS)

switch (info.type) {
case LINK_STATE_SYNC:
STREAM_GETC(s, dst.proto);
STREAM_GETW(s, dst.instance);
STREAM_GETL(s, dst.session_id);
dst.proto = info.src_proto;
dst.instance = info.src_instance;
dst.session_id = info.src_session_id;
dst.type = LINK_STATE_SYNC;
ret = ospf_te_sync_ted(dst);
break;
Expand Down

0 comments on commit 07a2b9d

Please sign in to comment.