static size_t rehash_ip(const void* _p, void* unused) { const struct proc_st * proc = _p; return hash_any( SA_IN_P_GENERIC(&proc->remote_addr, proc->remote_addr_len), SA_IN_SIZE(proc->remote_addr_len), 0); }
static size_t rehash(const void* _e, void* unused) { const struct ip_lease_st * e = _e; return hash_any(SA_IN_P_GENERIC(&e->rip, e->rip_len), SA_IN_SIZE(e->rip_len), 0); }