Lines Matching defs:inc

142 static int	 syncookie_cmp(struct in_conninfo *inc, struct syncache_head *sch,
499 syncache_lookup(struct in_conninfo *inc, struct syncache_head **schp)
512 hash = jenkins_hash32((uint32_t *)&inc->inc_ie, 5,
521 if (bcmp(&inc->inc_ie, &sc->sc_inc.inc_ie,
534 syncache_chkrst(struct in_conninfo *inc, struct tcphdr *th)
540 sc = syncache_lookup(inc, &sch); /* returns locked sch */
548 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
564 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
588 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
594 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
608 syncache_badack(struct in_conninfo *inc)
613 sc = syncache_lookup(inc, &sch); /* returns locked sch */
623 syncache_unreach(struct in_conninfo *inc, tcp_seq th_seq)
628 sc = syncache_lookup(inc, &sch); /* returns locked sch */
972 syncache_expand(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
988 sc = syncache_lookup(inc, &sch); /* returns locked sch */
997 syncookie_cmp(inc, sch, sc, th, to, *lsop);
1015 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1024 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1031 sc = syncookie_lookup(inc, sch, &scs, th, to, *lsop);
1034 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1046 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1069 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1081 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1103 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1121 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1139 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1174 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1186 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1266 syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
1306 if ((inc->inc_flags & INC_ISIPV6) &&
1329 result = tcp_fastopen_check_cookie(inc,
1359 if (!(inc->inc_flags & INC_ISIPV6))
1395 sc = syncache_lookup(inc, &sch); /* returns locked entry */
1494 bcopy(inc, &sc->sc_inc, sizeof(struct in_conninfo));
1496 if (!(inc->inc_flags & INC_ISIPV6))
1527 sc->sc_tsoff = tcp_new_ts_offset(inc);
1979 syncookie_mac(struct in_conninfo *inc, tcp_seq irs, uint8_t flags,
1987 switch (inc->inc_flags & INC_ISIPV6) {
1990 SipHash_Update(&ctx, &inc->inc_faddr, sizeof(inc->inc_faddr));
1991 SipHash_Update(&ctx, &inc->inc_laddr, sizeof(inc->inc_laddr));
1996 SipHash_Update(&ctx, &inc->inc6_faddr, sizeof(inc->inc6_faddr));
1997 SipHash_Update(&ctx, &inc->inc6_laddr, sizeof(inc->inc6_laddr));
2001 SipHash_Update(&ctx, &inc->inc_fport, sizeof(inc->inc_fport));
2002 SipHash_Update(&ctx, &inc->inc_lport, sizeof(inc->inc_lport));
2069 syncookie_lookup(struct in_conninfo *inc, struct syncache_head *sch,
2097 hash = syncookie_mac(inc, seq, cookie.cookie, secbits, (uintptr_t)sch);
2105 bcopy(inc, &sc->sc_inc, sizeof(struct in_conninfo));
2111 switch (inc->inc_flags & INC_ISIPV6) {
2151 sc->sc_tsoff = tcp_new_ts_offset(inc);
2165 syncookie_cmp(struct in_conninfo *inc, struct syncache_head *sch,
2173 scx = syncookie_lookup(inc, sch, &scs, th, to, lso);
2175 if ((s = tcp_log_addrs(inc, th, NULL, NULL)) == NULL)