Lines Matching refs:inc
369 static char * tcp_log_addr(struct in_conninfo *inc, struct tcphdr *th,
2832 struct in_conninfo inc;
2908 bzero(&inc, sizeof(inc));
2909 inc.inc_faddr = faddr;
2910 inc.inc_fibnum =
2912 tcp_hc_updatemtu(&inc, mtu);
2921 bzero(&inc, sizeof(inc));
2922 inc.inc_fport = th->th_dport;
2923 inc.inc_lport = th->th_sport;
2924 inc.inc_faddr = faddr;
2925 inc.inc_laddr = ip->ip_src;
2926 syncache_unreach(&inc, icmp_tcp_seq, port);
2991 struct in_conninfo inc;
3091 bzero(&inc, sizeof(inc));
3092 inc.inc_fibnum = M_GETFIB(m);
3093 inc.inc_flags |= INC_ISIPV6;
3094 inc.inc6_faddr = *dst;
3095 if (in6_setscope(&inc.inc6_faddr,
3105 tcp_hc_updatemtu(&inc, mtu);
3115 bzero(&inc, sizeof(inc));
3116 inc.inc_fibnum = M_GETFIB(m);
3117 inc.inc_flags |= INC_ISIPV6;
3118 inc.inc_fport = t_ports.th_dport;
3119 inc.inc_lport = t_ports.th_sport;
3120 inc.inc6_faddr = *dst;
3121 inc.inc6_laddr = ip6->ip6_src;
3122 syncache_unreach(&inc, icmp_tcp_seq, port);
3164 tcp_keyed_hash(struct in_conninfo *inc, u_char *key, u_int len)
3173 SipHash_Update(&ctx, &inc->inc_fport, sizeof(uint16_t));
3174 SipHash_Update(&ctx, &inc->inc_lport, sizeof(uint16_t));
3175 switch (inc->inc_flags & INC_ISIPV6) {
3178 SipHash_Update(&ctx, &inc->inc_faddr, sizeof(struct in_addr));
3179 SipHash_Update(&ctx, &inc->inc_laddr, sizeof(struct in_addr));
3184 SipHash_Update(&ctx, &inc->inc6_faddr, sizeof(struct in6_addr));
3185 SipHash_Update(&ctx, &inc->inc6_laddr, sizeof(struct in6_addr));
3195 tcp_new_ts_offset(struct in_conninfo *inc)
3200 memcpy(&inc_store, inc, sizeof(struct in_conninfo));
3205 local_inc = inc;
3273 tcp_new_isn(struct in_conninfo *inc)
3288 new_isn = (tcp_seq)tcp_keyed_hash(inc, V_isn_secret,
3400 tcp_maxmtu(struct in_conninfo *inc, struct tcp_ifcap *cap)
3406 KASSERT(inc != NULL, ("tcp_maxmtu with NULL in_conninfo pointer"));
3408 if (inc->inc_faddr.s_addr != INADDR_ANY) {
3409 nh = fib4_lookup(inc->inc_fibnum, inc->inc_faddr, 0, NHR_NONE, 0);
3433 tcp_maxmtu6(struct in_conninfo *inc, struct tcp_ifcap *cap)
3441 KASSERT(inc != NULL, ("tcp_maxmtu6 with NULL in_conninfo pointer"));
3443 if (inc->inc_flags & INC_IPV6MINMTU)
3446 if (!IN6_IS_ADDR_UNSPECIFIED(&inc->inc6_faddr)) {
3447 in6_splitscope(&inc->inc6_faddr, &dst6, &scopeid);
3448 nh = fib6_lookup(inc->inc_fibnum, &dst6, scopeid, NHR_NONE, 0);
3816 tcp_log_vain(struct in_conninfo *inc, struct tcphdr *th, void *ip4hdr,
3824 return (tcp_log_addr(inc, th, ip4hdr, ip6hdr));
3828 tcp_log_addrs(struct in_conninfo *inc, struct tcphdr *th, void *ip4hdr,
3836 return (tcp_log_addr(inc, th, ip4hdr, ip6hdr));
3840 tcp_log_addr(struct in_conninfo *inc, struct tcphdr *th, void *ip4hdr,
3872 if (inc && ((inc->inc_flags & INC_ISIPV6) == 0)) {
3873 inet_ntoa_r(inc->inc_faddr, sp);
3875 sprintf(sp, "]:%i to [", ntohs(inc->inc_fport));
3877 inet_ntoa_r(inc->inc_laddr, sp);
3879 sprintf(sp, "]:%i", ntohs(inc->inc_lport));
3881 } else if (inc) {
3882 ip6_sprintf(sp, &inc->inc6_faddr);
3884 sprintf(sp, "]:%i to [", ntohs(inc->inc_fport));
3886 ip6_sprintf(sp, &inc->inc6_laddr);
3888 sprintf(sp, "]:%i", ntohs(inc->inc_lport));