Lines Matching refs:itpl
1184 tcp_fill_info_for_info_tuple(struct info_tuple *itpl, struct tcp_info *ti)
1191 if (itpl->itpl_proto == IPPROTO_TCP)
1196 if (itpl->itpl_local_sa.sa_family == AF_INET &&
1197 itpl->itpl_remote_sa.sa_family == AF_INET) {
1199 itpl->itpl_remote_sin.sin_addr,
1200 itpl->itpl_remote_sin.sin_port,
1201 itpl->itpl_local_sin.sin_addr,
1202 itpl->itpl_local_sin.sin_port,
1204 } else if (itpl->itpl_local_sa.sa_family == AF_INET6 &&
1205 itpl->itpl_remote_sa.sa_family == AF_INET6) {
1209 ina6_local = itpl->itpl_local_sin6.sin6_addr;
1210 if (IN6_IS_SCOPE_LINKLOCAL(&ina6_local) && itpl->itpl_local_sin6.sin6_scope_id)
1211 ina6_local.s6_addr16[1] = htons(itpl->itpl_local_sin6.sin6_scope_id);
1213 ina6_remote = itpl->itpl_remote_sin6.sin6_addr;
1214 if (IN6_IS_SCOPE_LINKLOCAL(&ina6_remote) && itpl->itpl_remote_sin6.sin6_scope_id)
1215 ina6_remote.s6_addr16[1] = htons(itpl->itpl_remote_sin6.sin6_scope_id);
1219 itpl->itpl_remote_sin6.sin6_port,
1221 itpl->itpl_local_sin6.sin6_port,
1247 struct info_tuple itpl;
1255 error = SYSCTL_IN(req, &itpl, sizeof(struct info_tuple));
1259 error = tcp_fill_info_for_info_tuple(&itpl, &ti);