13 Jan
2011
13 Jan
'11
6:18 a.m.
On 13/01/11 11:03, Alan DeKok wrote:
Seppo Sandberg wrote:
If I was inclined to create such a patch how would we begin to tackle the issue? I guess you would tell me how you would like to have it implemented?
See src/main/dhcpd.c
Look for "relay". Add a cache (hash table or rbtree) for XID, and maybe (XID,MAC). Add entries to the cache on forward, remove entries on reply.
What's the rationale for keeping state? I was under the impression that DHCP relays could be stateless. Since you can chain relays, but replies go straight back to the first one (via the giaddr field)