Lines Matching refs:inc
150 static int syncookie_cmp(struct in_conninfo *inc, struct syncache_head *sch,
572 syncache_hashbucket(struct in_conninfo *inc) in syncache_hashbucket() argument
583 hash = jenkins_hash32((uint32_t *)&inc->inc_ie, 5, in syncache_hashbucket()
594 syncache_lookup(struct in_conninfo *inc, struct syncache_head **schp) in syncache_lookup() argument
599 *schp = sch = syncache_hashbucket(inc); in syncache_lookup()
604 if (bcmp(&inc->inc_ie, &sc->sc_inc.inc_ie, in syncache_lookup()
618 syncache_chkrst(struct in_conninfo *inc, struct tcphdr *th, struct mbuf *m, in syncache_chkrst() argument
627 sc = syncache_lookup(inc, &sch); /* returns locked sch */ in syncache_chkrst()
639 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) in syncache_chkrst()
649 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) in syncache_chkrst()
689 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) in syncache_chkrst()
699 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) in syncache_chkrst()
714 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) in syncache_chkrst()
729 syncache_badack(struct in_conninfo *inc, uint16_t port) in syncache_badack() argument
736 sc = syncache_lookup(inc, &sch); /* returns locked sch */ in syncache_badack()
746 syncache_unreach(struct in_conninfo *inc, tcp_seq th_seq, uint16_t port) in syncache_unreach() argument
753 sc = syncache_lookup(inc, &sch); /* returns locked sch */ in syncache_unreach()
1062 syncache_expand(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, in syncache_expand() argument
1077 sch = syncache_hashbucket(inc); in syncache_expand()
1080 sc = syncache_lookup(inc, &sch); /* returns locked sch */ in syncache_expand()
1091 syncookie_cmp(inc, sch, sc, th, to, *lsop, port); in syncache_expand()
1109 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) in syncache_expand()
1118 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) in syncache_expand()
1125 sc = syncookie_lookup(inc, sch, &scs, th, to, *lsop, port); in syncache_expand()
1129 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) in syncache_expand()
1141 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) { in syncache_expand()
1169 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) { in syncache_expand()
1181 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) { in syncache_expand()
1203 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) { in syncache_expand()
1221 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) { in syncache_expand()
1239 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) { in syncache_expand()
1248 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) { in syncache_expand()
1275 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) in syncache_expand()
1287 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) in syncache_expand()
1369 syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, in syncache_add() argument
1406 if (inc->inc_flags & INC_ISIPV6) { in syncache_add()
1444 result = tcp_fastopen_check_cookie(inc, in syncache_add()
1472 if (!(inc->inc_flags & INC_ISIPV6)) in syncache_add()
1516 sch = syncache_hashbucket(inc); in syncache_add()
1519 sc = syncache_lookup(inc, &sch); /* returns locked sch */ in syncache_add()
1601 syncache_pause(inc); in syncache_add()
1645 bcopy(inc, &sc->sc_inc, sizeof(struct in_conninfo)); in syncache_add()
1673 sc->sc_tsoff = tcp_new_ts_offset(inc); in syncache_add()
2177 syncookie_mac(struct in_conninfo *inc, tcp_seq irs, uint8_t flags, in syncookie_mac() argument
2185 switch (inc->inc_flags & INC_ISIPV6) { in syncookie_mac()
2188 SipHash_Update(&ctx, &inc->inc_faddr, sizeof(inc->inc_faddr)); in syncookie_mac()
2189 SipHash_Update(&ctx, &inc->inc_laddr, sizeof(inc->inc_laddr)); in syncookie_mac()
2194 SipHash_Update(&ctx, &inc->inc6_faddr, sizeof(inc->inc6_faddr)); in syncookie_mac()
2195 SipHash_Update(&ctx, &inc->inc6_laddr, sizeof(inc->inc6_laddr)); in syncookie_mac()
2199 SipHash_Update(&ctx, &inc->inc_fport, sizeof(inc->inc_fport)); in syncookie_mac()
2200 SipHash_Update(&ctx, &inc->inc_lport, sizeof(inc->inc_lport)); in syncookie_mac()
2265 syncookie_lookup(struct in_conninfo *inc, struct syncache_head *sch, in syncookie_lookup() argument
2291 hash = syncookie_mac(inc, seq, cookie.cookie, secbits, (uintptr_t)sch); in syncookie_lookup()
2299 bcopy(inc, &sc->sc_inc, sizeof(struct in_conninfo)); in syncookie_lookup()
2305 switch (inc->inc_flags & INC_ISIPV6) { in syncookie_lookup()
2345 sc->sc_tsoff = tcp_new_ts_offset(inc); in syncookie_lookup()
2361 syncookie_cmp(struct in_conninfo *inc, struct syncache_head *sch, in syncookie_cmp() argument
2369 scx = syncookie_lookup(inc, sch, &scs, th, to, lso, port); in syncookie_cmp()
2371 if ((s = tcp_log_addrs(inc, th, NULL, NULL)) == NULL) in syncookie_cmp()
2427 syncache_pause(struct in_conninfo *inc) in syncache_pause() argument
2481 if (inc != NULL) in syncache_pause()
2482 s = tcp_log_addrs(inc, NULL, NULL, NULL); in syncache_pause()