Skip to content

Commit

Permalink
ripd.c - rip_auth_md5 : Start sequence at 0
Browse files Browse the repository at this point in the history
Start the sequence at zero to make md5 authentication compatible with bird

Signed-off-by: T-Nicolas <[email protected]>
  • Loading branch information
T-Nicolas authored Jun 17, 2024
1 parent 045029e commit 6a73f61
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 6a73f61

Please sign in to comment.