ip: populate ip_reassembly_get_reply correctly 67/23767/2
authorMatthew Smith <mgsmith@netgate.com>
Tue, 3 Dec 2019 18:41:53 +0000 (12:41 -0600)
committerNeale Ranns <nranns@cisco.com>
Wed, 4 Dec 2019 00:04:11 +0000 (00:04 +0000)
commitb3174dfe8f62168d9f279ef1267b876e2b35d807
treedbb165a9573d7e48fb305d4de18d05b3d4240f7a
parent960eeea7ea48d91c1f2ec3a85a7a84f56619be2a
ip: populate ip_reassembly_get_reply correctly

Type: fix
Fixes: de34c35fc

The API handler for requests to retrieve IP reassembly settings was
modified to support shallow virtual reassembly. It retrieves
settings into local variables now instead of directly into the reply
message. The fields in the reply message were not being populated
using those variables. So the reply message was being sent with all
0's, except in the is_ip6 field.

Also, the max_reassembly length field in the reply message was not
being populated.

Change-Id: I80b071340fdc190c3a0b1f7294a03f14b6e00ecc
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vnet/ip/ip_api.c