Lines Matching refs:inc
292 tcp_hc_lookup(struct in_conninfo *inc)
301 KASSERT(inc != NULL, ("tcp_hc_lookup with NULL in_conninfo pointer"));
306 if (inc->inc_flags & INC_ISIPV6)
307 hash = HOSTCACHE_HASH6(&inc->inc6_faddr);
309 hash = HOSTCACHE_HASH(&inc->inc_faddr);
324 if (inc->inc_flags & INC_ISIPV6) {
326 if (memcmp(&inc->inc6_faddr, &hc_entry->ip6,
327 sizeof(inc->inc6_faddr)) == 0)
330 if (memcmp(&inc->inc_faddr, &hc_entry->ip4,
331 sizeof(inc->inc_faddr)) == 0)
351 tcp_hc_insert(struct in_conninfo *inc)
360 KASSERT(inc != NULL, ("tcp_hc_insert with NULL in_conninfo pointer"));
365 if (inc->inc_flags & INC_ISIPV6)
366 hash = HOSTCACHE_HASH6(&inc->inc6_faddr);
368 hash = HOSTCACHE_HASH(&inc->inc_faddr);
425 if (inc->inc_flags & INC_ISIPV6) {
426 hc_entry->ip6 = inc->inc6_faddr;
427 hc_entry->ip6_zoneid = inc->inc6_zoneid;
429 hc_entry->ip4 = inc->inc_faddr;
454 tcp_hc_get(struct in_conninfo *inc, struct hc_metrics_lite *hc_metrics_lite)
466 hc_entry = tcp_hc_lookup(inc);
498 tcp_hc_getmtu(struct in_conninfo *inc)
506 hc_entry = tcp_hc_lookup(inc);
523 tcp_hc_updatemtu(struct in_conninfo *inc, uint32_t mtu)
533 hc_entry = tcp_hc_lookup(inc);
539 hc_entry = tcp_hc_insert(inc);
565 tcp_hc_update(struct in_conninfo *inc, struct hc_metrics_lite *hcml)
572 hc_entry = tcp_hc_lookup(inc);
574 hc_entry = tcp_hc_insert(inc);