Lines Matching refs:fhp

345 	struct heap_entry *fhp = &da->heap[0];  in initheap()  local
357 rt_get_inet_prefix_plen(rt, &addr, &fhp->preflen, &scopeid); in initheap()
358 fhp->start = ntohl(addr.s_addr); in initheap()
359 fhp->end = fhp->start; in initheap()
360 if (fhp->preflen < 32) in initheap()
361 fhp->end |= (0xffffffffU >> fhp->preflen); in initheap()
362 fhp->nexthop = fib_get_nhop_idx(da->fd, rnd.rnd_nhop); in initheap()
364 fhp->preflen = fhp->nexthop = fhp->start = 0; in initheap()
365 fhp->end = 0xffffffffU; in initheap()
666 struct heap_entry *fhp; in heap_inject() local
678 fhp = &da->heap[i + 1]; in heap_inject()
679 fhp->preflen = preflen; in heap_inject()
680 fhp->start = start; in heap_inject()
681 fhp->end = end; in heap_inject()
682 fhp->nexthop = nh; in heap_inject()
695 struct heap_entry *fhp = &da->heap[da->heap_index]; in dxr_walk() local
711 if (start == fhp->start) in dxr_walk()
715 while (start > fhp->end) { in dxr_walk()
716 uint32_t oend = fhp->end; in dxr_walk()
719 fhp--; in dxr_walk()
722 initheap(da, fhp->end + 1, chunk); in dxr_walk()
723 if (fhp->end > oend && fhp->nexthop != fp->nexthop) { in dxr_walk()
727 fp->nexthop = fhp->nexthop; in dxr_walk()
756 struct heap_entry *fhp; in update_chunk() local
780 fhp = &da->heap[da->heap_index]; in update_chunk()
781 while (fhp->preflen > DXR_TRIE_BITS) { in update_chunk()
782 uint32_t oend = fhp->end; in update_chunk()
785 fhp--; in update_chunk()
788 initheap(da, fhp->end + 1, chunk); in update_chunk()
789 if (fhp->end > oend && fhp->nexthop != fp->nexthop) { in update_chunk()
796 fp->nexthop = fhp->nexthop; in update_chunk()