]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Assume buffer size passed in is of sufficient size
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 10 Feb 2017 18:46:52 +0000 (13:46 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 24 Feb 2017 15:03:40 +0000 (10:03 -0500)
commitf8e7d7992fe201052e3969bdd4aab217ffd4d505
tree897aa1fd39414d2dc7f9a73b0b8a3c21060df5a4
parent70ce34ae66184d4b456f45e6544c5fc0c350f2e5
pimd: Assume buffer size passed in is of sufficient size

For:
pim_msg_build_header
pim_msg_addr_encode_ipv4_ucast
pim_msg_addr_encode_ipv4_group
pim_msg_addr_encode_ipv4_source

Assume that the buffer size passed in is of sufficient size
already.  This is assured already because buffer sizes
are checked for minimum lengths for the entire packet
ahead of time.  So we are double checking.

Additionally at scale we will be calling these functions
a very very large number of times.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_assert.c
pimd/pim_msg.c
pimd/pim_msg.h
pimd/pim_pim.c