Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_input.c
Show First 20 Lines • Show All 1,045 Lines • ▼ Show 20 Lines | KASSERT(tp->t_state == TCPS_LISTEN || !(so->so_options & SO_ACCEPTCONN), | ||||
("%s: so accepting but tp %p not listening", __func__, tp)); | ("%s: so accepting but tp %p not listening", __func__, tp)); | ||||
if (tp->t_state == TCPS_LISTEN && (so->so_options & SO_ACCEPTCONN)) { | if (tp->t_state == TCPS_LISTEN && (so->so_options & SO_ACCEPTCONN)) { | ||||
struct in_conninfo inc; | struct in_conninfo inc; | ||||
bzero(&inc, sizeof(inc)); | bzero(&inc, sizeof(inc)); | ||||
#ifdef INET6 | #ifdef INET6 | ||||
if (isipv6) { | if (isipv6) { | ||||
inc.inc_flags |= INC_ISIPV6; | inc.inc_flags |= INC_ISIPV6; | ||||
if (inp->inp_inc.inc_flags & INC_IPV6MINMTU) | |||||
inc.inc_flags |= INC_IPV6MINMTU; | |||||
inc.inc6_faddr = ip6->ip6_src; | inc.inc6_faddr = ip6->ip6_src; | ||||
inc.inc6_laddr = ip6->ip6_dst; | inc.inc6_laddr = ip6->ip6_dst; | ||||
} else | } else | ||||
#endif | #endif | ||||
{ | { | ||||
inc.inc_faddr = ip->ip_src; | inc.inc_faddr = ip->ip_src; | ||||
inc.inc_laddr = ip->ip_dst; | inc.inc_laddr = ip->ip_dst; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,757 Lines • Show Last 20 Lines |