[kea-dev] How is giaddr (Relay Agent Ip Address ) fetched and saved in Pkt4 object
tomasz at isc.org
Wed Dec 17 11:19:07 UTC 2014
On 17.12.2014 11:46, anuj chauhan wrote:
> How is the Pkt4 Object created and assigned values from dhcp discover
> packet recieved on socket.Is the Giaddr field of dhcpdiscover packet
> retrieved and stored in the Pkt4 object.
See Dhcpv4Srv::run(). It's the best place to analyse the code yourself.
Look at the query->unpack() which is a call to Pkt4::unpack().
Make sure you read the doxygen comments in .h files. Every method is
very well documented. You may also take a look at its generated output
here: kea.isc.org -> Developer's Guide -> Classes.
Hope that helps.
More information about the kea-dev