]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Remove PDU queuing
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Sat, 21 Oct 2023 03:08:46 +0000 (21:08 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Tue, 24 Oct 2023 01:33:02 +0000 (19:33 -0600)
commit0da59d8a8f2c77ef64bd74b5774f832737dd6d5d
tree6d305efc0ad301a9c030b2cbdc298262c2d22944
parenteea8e4b4ed18019efeed72315a43c4b41f4fd0db
Remove PDU queuing

Tweak ideated during the commit message of the previous commit.

- If the read() yields at least one Error Report, drop the connection.

This is because all the server-received error codes currently defined
are supposed to result in immediate connection termination.

If a future RFC defines a nonfatal error code, Error Reports should
probably be downgraded to the 'last PDU' rule below.

- Otherwise, if a read() yields multile PDUs, drop all except for the
  last one.

Since it's what the client is most likely expecting, I guess. Serial
Queries and Reset Queries are alternate means to achieve the same goal,
so it doesn't make sense to queue them.
src/rtr/pdu.h
src/rtr/pdu_handler.c
src/rtr/pdu_handler.h
src/rtr/pdu_sender.c
src/rtr/pdu_stream.c
src/rtr/pdu_stream.h
src/rtr/rtr.c
test/rtr/pdu_handler_test.c
test/rtr/pdu_stream_test.c