]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Simplify PDUs sender.
authorpcarana <pc.moreno2099@gmail.com>
Fri, 10 May 2019 22:44:20 +0000 (17:44 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Fri, 10 May 2019 22:44:20 +0000 (17:44 -0500)
commit09b68e6c13b16843dc3bec65db61a27c27675847
tree77420502c255804ae5275111207f201eb36e23be
parent44bbf8d611877b0eb577c7b2de818882a25e071e
Simplify PDUs sender.

-Remove data_buffer struct since isn't really needed.
-Move BUFFER_SIZE (now MAX_BUFFER_SIZE) to pdu_serializer, and increment to 1024.
-The static sender function (send_response) just sends whatever data it receives, since every other PDU sender function and the serializer are responsible to set the data length to the exact size of the data that'll be sent.
src/rtr/pdu_sender.c
src/rtr/pdu_serializer.c
src/rtr/pdu_serializer.h