Understanding the v6 relay agent workflow
Petrin, Benjamin
b.petrin at WPI.EDU
Mon Mar 23 16:40:13 UTC 2009
Hello,
I am trying to get a handle on how the relay agent works for dhcpv6. I'm new to both dhcp and the codebase but have been trying to go through the code and read the relevant RFCs to get up to speed. My question is that I see many functions of interest that make sense to me such as "add_relay_agent_options" and "strip_relay_agent_options" that only appear in the "do_relay4" function of /relay/dhcrealy.c. I see that in dhcpv4 the "bootp_packet_handler" is set equal to "do_relay4" just before calling "dispatch" but in dhcpv6 instead the "dhcpv6_packet_handler" is set equal to "do_packet6". Digging through do_packet6 though I see nothing of the sort of logic found in do_realy4, even though (I am supposing) these functions perform analogous tasks depending on if we are doing dhcpv4 or v6. So what have I incorrectly assumed? Where should I be looking to see the main logic of the relay agent workflow for v6 that i see in do_relay4?
Thanks and I apologize if this question is so basic...
Best regards,
Benjamin Petrin
More information about the dhcp-hackers
mailing list