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]>
  • Loading branch information
T-Nicolas committed Jun 27, 2024
1 parent 045029e commit 1a64fe4
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 @@ -1051,7 +1051,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 1a64fe4

Please sign in to comment.