Lines Matching defs:inc

150 static int	 syncookie_cmp(struct in_conninfo *inc, struct syncache_head *sch,
516 syncache_lookup(struct in_conninfo *inc, struct syncache_head **schp)
529 hash = jenkins_hash32((uint32_t *)&inc->inc_ie, 5,
538 if (bcmp(&inc->inc_ie, &sc->sc_inc.inc_ie,
552 syncache_chkrst(struct in_conninfo *inc, struct tcphdr *th, struct mbuf *m)
558 sc = syncache_lookup(inc, &sch); /* returns locked sch */
566 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
582 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
622 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
632 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
641 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
656 syncache_badack(struct in_conninfo *inc)
661 sc = syncache_lookup(inc, &sch); /* returns locked sch */
671 syncache_unreach(struct in_conninfo *inc, tcp_seq th_seq)
676 sc = syncache_lookup(inc, &sch); /* returns locked sch */
1003 syncache_expand(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
1019 sc = syncache_lookup(inc, &sch); /* returns locked sch */
1028 syncookie_cmp(inc, sch, sc, th, to, *lsop);
1046 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1055 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1062 sc = syncookie_lookup(inc, sch, &scs, th, to, *lsop);
1065 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1077 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1100 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1112 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1134 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1152 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1170 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1179 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1217 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1229 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1307 syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
1347 if (inc->inc_flags & INC_ISIPV6) {
1385 result = tcp_fastopen_check_cookie(inc,
1417 if (!(inc->inc_flags & INC_ISIPV6))
1453 sc = syncache_lookup(inc, &sch); /* returns locked entry */
1553 bcopy(inc, &sc->sc_inc, sizeof(struct in_conninfo));
1581 sc->sc_tsoff = tcp_new_ts_offset(inc);
2043 syncookie_mac(struct in_conninfo *inc, tcp_seq irs, uint8_t flags,
2051 switch (inc->inc_flags & INC_ISIPV6) {
2054 SipHash_Update(&ctx, &inc->inc_faddr, sizeof(inc->inc_faddr));
2055 SipHash_Update(&ctx, &inc->inc_laddr, sizeof(inc->inc_laddr));
2060 SipHash_Update(&ctx, &inc->inc6_faddr, sizeof(inc->inc6_faddr));
2061 SipHash_Update(&ctx, &inc->inc6_laddr, sizeof(inc->inc6_laddr));
2065 SipHash_Update(&ctx, &inc->inc_fport, sizeof(inc->inc_fport));
2066 SipHash_Update(&ctx, &inc->inc_lport, sizeof(inc->inc_lport));
2133 syncookie_lookup(struct in_conninfo *inc, struct syncache_head *sch,
2161 hash = syncookie_mac(inc, seq, cookie.cookie, secbits, (uintptr_t)sch);
2169 bcopy(inc, &sc->sc_inc, sizeof(struct in_conninfo));
2175 switch (inc->inc_flags & INC_ISIPV6) {
2215 sc->sc_tsoff = tcp_new_ts_offset(inc);
2229 syncookie_cmp(struct in_conninfo *inc, struct syncache_head *sch,
2237 scx = syncookie_lookup(inc, sch, &scs, th, to, lso);
2239 if ((s = tcp_log_addrs(inc, th, NULL, NULL)) == NULL)