Lines Matching refs:inc

213 #define	HOSTCACHE_HASH(inc)						\  argument
214 ((inc)->inc_flags & INC_ISIPV6) ? \
215 (jenkins_hash32((inc)->inc6_faddr.s6_addr32, 4, \
218 (jenkins_hash32(&(inc)->inc_faddr.s_addr, 1, \
316 tcp_hc_cmp(struct hc_metrics *hc_entry, struct in_conninfo *inc) in tcp_hc_cmp() argument
319 if (inc->inc_flags & INC_ISIPV6) { in tcp_hc_cmp()
321 if (memcmp(&inc->inc6_faddr, &hc_entry->ip6, in tcp_hc_cmp()
322 sizeof(inc->inc6_faddr)) == 0) in tcp_hc_cmp()
325 if (memcmp(&inc->inc_faddr, &hc_entry->ip4, in tcp_hc_cmp()
326 sizeof(inc->inc_faddr)) == 0) in tcp_hc_cmp()
338 tcp_hc_lookup(struct in_conninfo *inc) in tcp_hc_lookup() argument
343 KASSERT(inc != NULL, ("%s: NULL in_conninfo", __func__)); in tcp_hc_lookup()
345 hc_head = &V_tcp_hostcache.hashbase[HOSTCACHE_HASH(inc)]; in tcp_hc_lookup()
352 if (tcp_hc_cmp(hc_entry, inc)) in tcp_hc_lookup()
375 tcp_hc_get(struct in_conninfo *inc, struct hc_metrics_lite *hc_metrics_lite) in tcp_hc_get() argument
387 hc_entry = tcp_hc_lookup(inc); in tcp_hc_get()
414 tcp_hc_getmtu(struct in_conninfo *inc) in tcp_hc_getmtu() argument
422 hc_entry = tcp_hc_lookup(inc); in tcp_hc_getmtu()
438 tcp_hc_updatemtu(struct in_conninfo *inc, uint32_t mtu) in tcp_hc_updatemtu() argument
442 return (tcp_hc_update(inc, &hcml)); in tcp_hc_updatemtu()
450 tcp_hc_update(struct in_conninfo *inc, struct hc_metrics_lite *hcml) in tcp_hc_update() argument
460 hc_head = &V_tcp_hostcache.hashbase[HOSTCACHE_HASH(inc)]; in tcp_hc_update()
465 if (tcp_hc_cmp(hc_entry, inc)) in tcp_hc_update()
534 if (inc->inc_flags & INC_ISIPV6) { in tcp_hc_update()
535 hc_entry->ip6 = inc->inc6_faddr; in tcp_hc_update()
536 hc_entry->ip6_zoneid = inc->inc6_zoneid; in tcp_hc_update()
538 hc_entry->ip4 = inc->inc_faddr; in tcp_hc_update()