Lines Matching defs:inc

142 static int	 syncookie_cmp(struct in_conninfo *inc, struct syncache_head *sch,
564 syncache_hashbucket(struct in_conninfo *inc)
575 hash = jenkins_hash32((uint32_t *)&inc->inc_ie, 5,
586 syncache_lookup(struct in_conninfo *inc, struct syncache_head **schp)
591 *schp = sch = syncache_hashbucket(inc);
596 if (bcmp(&inc->inc_ie, &sc->sc_inc.inc_ie,
610 syncache_chkrst(struct in_conninfo *inc, struct tcphdr *th, struct mbuf *m,
619 sc = syncache_lookup(inc, &sch); /* returns locked sch */
631 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
641 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
681 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
691 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
706 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
721 syncache_badack(struct in_conninfo *inc, uint16_t port)
728 sc = syncache_lookup(inc, &sch); /* returns locked sch */
738 syncache_unreach(struct in_conninfo *inc, tcp_seq th_seq, uint16_t port)
745 sc = syncache_lookup(inc, &sch); /* returns locked sch */
1052 syncache_expand(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
1067 sch = syncache_hashbucket(inc);
1070 sc = syncache_lookup(inc, &sch); /* returns locked sch */
1081 syncookie_cmp(inc, sch, sc, th, to, *lsop, port);
1099 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1108 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1115 sc = syncookie_lookup(inc, sch, &scs, th, to, *lsop, port);
1119 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1131 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1159 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1171 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1193 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1211 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1229 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1238 if ((s = tcp_log_addrs(inc, th, NULL, NULL))) {
1265 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1277 if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
1359 syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
1396 if (inc->inc_flags & INC_ISIPV6) {
1434 result = tcp_fastopen_check_cookie(inc,
1462 if (!(inc->inc_flags & INC_ISIPV6))
1506 sch = syncache_hashbucket(inc);
1509 sc = syncache_lookup(inc, &sch); /* returns locked sch */
1591 syncache_pause(inc);
1635 bcopy(inc, &sc->sc_inc, sizeof(struct in_conninfo));
1663 sc->sc_tsoff = tcp_new_ts_offset(inc);
2167 syncookie_mac(struct in_conninfo *inc, tcp_seq irs, uint8_t flags,
2175 switch (inc->inc_flags & INC_ISIPV6) {
2178 SipHash_Update(&ctx, &inc->inc_faddr, sizeof(inc->inc_faddr));
2179 SipHash_Update(&ctx, &inc->inc_laddr, sizeof(inc->inc_laddr));
2184 SipHash_Update(&ctx, &inc->inc6_faddr, sizeof(inc->inc6_faddr));
2185 SipHash_Update(&ctx, &inc->inc6_laddr, sizeof(inc->inc6_laddr));
2189 SipHash_Update(&ctx, &inc->inc_fport, sizeof(inc->inc_fport));
2190 SipHash_Update(&ctx, &inc->inc_lport, sizeof(inc->inc_lport));
2255 syncookie_lookup(struct in_conninfo *inc, struct syncache_head *sch,
2281 hash = syncookie_mac(inc, seq, cookie.cookie, secbits, (uintptr_t)sch);
2289 bcopy(inc, &sc->sc_inc, sizeof(struct in_conninfo));
2295 switch (inc->inc_flags & INC_ISIPV6) {
2335 sc->sc_tsoff = tcp_new_ts_offset(inc);
2351 syncookie_cmp(struct in_conninfo *inc, struct syncache_head *sch,
2359 scx = syncookie_lookup(inc, sch, &scs, th, to, lso, port);
2361 if ((s = tcp_log_addrs(inc, th, NULL, NULL)) == NULL)
2417 syncache_pause(struct in_conninfo *inc)
2471 if (inc != NULL)
2472 s = tcp_log_addrs(inc, NULL, NULL, NULL);