Skip to content

Commit

Permalink
ripd: Change the start value of sequence 1 to 0
Browse files Browse the repository at this point in the history
Signed-off-by: T-Nicolas <[email protected]>
(cherry picked from commit 1a64fe4)
  • Loading branch information
T-Nicolas authored and mergify[bot] committed Jul 1, 2024
1 parent 8093e98 commit 2973daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ripd/ripd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ static size_t rip_auth_md5_ah_write(struct stream *s, struct rip_interface *ri,
/* RFC2080: The value used in the sequence number is
arbitrary, but two suggestions are the time of the
message's creation or a simple message counter. */
stream_putl(s, ++seq);
stream_putl(s, seq++);

/* Reserved field must be zero. */
stream_putl(s, 0);
Expand Down

0 comments on commit 2973daa

Please sign in to comment.