Skip to content

Commit

Permalink
set OSPFv2 auth key-id to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Nov 8, 2023
1 parent 34d48d3 commit 85f4fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/bngblaster/src/ospf/ospf_pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ ospf_pdu_update_auth_v2(ospf_pdu_s *pdu, ospf_auth_type auth, char *key)
*(uint16_t*)OSPF_PDU_OFFSET(pdu, OSPF_OFFSET_CHECKSUM) = 0;

auth_hdr->reserved = 0;
auth_hdr->key_id = 0;
auth_hdr->key_id = 1;
auth_hdr->auth_data_len = OSPF_MD5_DIGEST_LEN;
auth_hdr->crypt_seq = htobe32(++g_crypt_seq);

Expand Down

0 comments on commit 85f4fb7

Please sign in to comment.