[odhcpd] Meaning of abreviations in source code

Hi!

Could someone tell me what the abbreviation “fr” in the odhcpd source code means?

addr_is_fr_ip
dhcpv4_fr_start
dhcpv4_fr_rand_delay
dhcpv4_fr_stop

What is the meaning of the abreviation “cb”?

dhcpv4_netevent_cb
valid_until_cb

I believe fr refers to “forced renew”. cb generally means “callback”.

1 Like

@dave14305 :

Thanks!

Reading RFC 2131 also helps to clarify the code. For instance, it becomes clearer what the pointer named cookie ("magic cookie") represents in the dhcpv4_put function. Otherwise, the code is hard to read without indications.