Lines Matching refs:inc
535 tcp_fastopen_make_cookie(uint8_t key[SIPHASH_KEY_LENGTH], struct in_conninfo *inc)
542 switch (inc->inc_flags & INC_ISIPV6) {
545 SipHash_Update(&ctx, &inc->inc_faddr, sizeof(inc->inc_faddr));
550 SipHash_Update(&ctx, &inc->inc6_faddr, sizeof(inc->inc6_faddr));
610 tcp_fastopen_check_cookie(struct in_conninfo *inc, uint8_t *cookie,
629 inc);
643 inc);
958 struct in_conninfo *inc = &tp->t_inpcb->inp_inc;
962 cce = tcp_fastopen_ccache_lookup(inc, &ccb);
973 tcp_fastopen_ccache_create(ccb, inc, 0,
984 struct in_conninfo *inc = &tp->t_inpcb->inp_inc;
988 cce = tcp_fastopen_ccache_lookup(inc, &ccb);
1009 tcp_fastopen_ccache_create(ccb, inc, mss, cookie_len, cookie);
1015 tcp_fastopen_ccache_lookup(struct in_conninfo *inc,
1023 hash = jenkins_hash32((uint32_t *)&inc->inc_ie.ie_dependladdr, 4,
1025 hash = jenkins_hash32((uint32_t *)&inc->inc_ie.ie_dependfaddr, 4,
1027 last_word = inc->inc_fport;
1037 if ((!(cce->af == AF_INET6) == !(inc->inc_flags & INC_ISIPV6)) &&
1038 (cce->server_port == inc->inc_ie.ie_fport) &&
1040 (cce->cce_client_ip.v4.s_addr == inc->inc_laddr.s_addr) &&
1041 (cce->cce_server_ip.v4.s_addr == inc->inc_faddr.s_addr)) ||
1043 IN6_ARE_ADDR_EQUAL(&cce->cce_client_ip.v6, &inc->inc6_laddr) &&
1044 IN6_ARE_ADDR_EQUAL(&cce->cce_server_ip.v6, &inc->inc6_faddr))))
1052 struct in_conninfo *inc, uint16_t mss, uint8_t cookie_len, uint8_t *cookie)
1084 cce->af = (inc->inc_flags & INC_ISIPV6) ? AF_INET6 : AF_INET;
1086 cce->cce_client_ip.v4 = inc->inc_laddr;
1087 cce->cce_server_ip.v4 = inc->inc_faddr;
1089 cce->cce_client_ip.v6 = inc->inc6_laddr;
1090 cce->cce_server_ip.v6 = inc->inc6_faddr;
1092 cce->server_port = inc->inc_fport;