Lines Matching refs:tconnp
1055 conn_t *tconnp; in ipcl_iptun_hash_insert() local
1061 for (tconnp = connfp->connf_head; tconnp != NULL; in ipcl_iptun_hash_insert()
1062 tconnp = tconnp->conn_next) { in ipcl_iptun_hash_insert()
1063 if (IPCL_IPTUN_MATCH(tconnp, laddr, faddr)) { in ipcl_iptun_hash_insert()
1078 conn_t *tconnp; in ipcl_iptun_hash_insert_v6() local
1084 for (tconnp = connfp->connf_head; tconnp != NULL; in ipcl_iptun_hash_insert_v6()
1085 tconnp = tconnp->conn_next) { in ipcl_iptun_hash_insert_v6()
1086 if (IPCL_IPTUN_MATCH_V6(tconnp, laddr, faddr)) { in ipcl_iptun_hash_insert_v6()
1339 conn_t *tconnp; in ipcl_conn_insert_v4() local
1363 for (tconnp = connfp->connf_head; tconnp != NULL; in ipcl_conn_insert_v4()
1364 tconnp = tconnp->conn_next) { in ipcl_conn_insert_v4()
1365 if (IPCL_CONN_MATCH(tconnp, connp->conn_proto, in ipcl_conn_insert_v4()
1368 IPCL_ZONE_MATCH(tconnp, connp->conn_zoneid)) { in ipcl_conn_insert_v4()
1437 conn_t *tconnp; in ipcl_conn_insert_v6() local
1463 for (tconnp = connfp->connf_head; tconnp != NULL; in ipcl_conn_insert_v6()
1464 tconnp = tconnp->conn_next) { in ipcl_conn_insert_v6()
1466 if (IPCL_CONN_MATCH_V6(tconnp, connp->conn_proto, in ipcl_conn_insert_v6()
1469 (tconnp->conn_bound_if == 0 || in ipcl_conn_insert_v6()
1470 tconnp->conn_bound_if == ifindex) && in ipcl_conn_insert_v6()
1471 IPCL_ZONE_MATCH(tconnp, connp->conn_zoneid)) { in ipcl_conn_insert_v6()
2402 conn_t *tconnp; in ipcl_conn_tcp_lookup_reversed_ipv4() local
2421 for (tconnp = connfp->connf_head; tconnp != NULL; in ipcl_conn_tcp_lookup_reversed_ipv4()
2422 tconnp = tconnp->conn_next) { in ipcl_conn_tcp_lookup_reversed_ipv4()
2424 if (IPCL_CONN_MATCH(tconnp, IPPROTO_TCP, in ipcl_conn_tcp_lookup_reversed_ipv4()
2426 tconnp->conn_tcp->tcp_state == TCPS_ESTABLISHED && in ipcl_conn_tcp_lookup_reversed_ipv4()
2427 (!zone_chk || tconnp->conn_zoneid == connp->conn_zoneid)) { in ipcl_conn_tcp_lookup_reversed_ipv4()
2429 ASSERT(tconnp != connp); in ipcl_conn_tcp_lookup_reversed_ipv4()
2430 CONN_INC_REF(tconnp); in ipcl_conn_tcp_lookup_reversed_ipv4()
2432 return (tconnp); in ipcl_conn_tcp_lookup_reversed_ipv4()
2452 conn_t *tconnp; in ipcl_conn_tcp_lookup_reversed_ipv6() local
2474 for (tconnp = connfp->connf_head; tconnp != NULL; in ipcl_conn_tcp_lookup_reversed_ipv6()
2475 tconnp = tconnp->conn_next) { in ipcl_conn_tcp_lookup_reversed_ipv6()
2478 if (IPCL_CONN_MATCH_V6(tconnp, IPPROTO_TCP, in ipcl_conn_tcp_lookup_reversed_ipv6()
2480 tconnp->conn_tcp->tcp_state == TCPS_ESTABLISHED && in ipcl_conn_tcp_lookup_reversed_ipv6()
2481 (!zone_chk || tconnp->conn_zoneid == connp->conn_zoneid)) { in ipcl_conn_tcp_lookup_reversed_ipv6()
2483 ASSERT(tconnp != connp); in ipcl_conn_tcp_lookup_reversed_ipv6()
2484 CONN_INC_REF(tconnp); in ipcl_conn_tcp_lookup_reversed_ipv6()
2486 return (tconnp); in ipcl_conn_tcp_lookup_reversed_ipv6()
2505 conn_t *tconnp; in ipcl_tcp_lookup_reversed_ipv4() local
2515 for (tconnp = connfp->connf_head; tconnp != NULL; in ipcl_tcp_lookup_reversed_ipv4()
2516 tconnp = tconnp->conn_next) { in ipcl_tcp_lookup_reversed_ipv4()
2518 if (IPCL_CONN_MATCH(tconnp, IPPROTO_TCP, in ipcl_tcp_lookup_reversed_ipv4()
2520 tconnp->conn_tcp->tcp_state >= min_state) { in ipcl_tcp_lookup_reversed_ipv4()
2522 CONN_INC_REF(tconnp); in ipcl_tcp_lookup_reversed_ipv4()
2524 return (tconnp); in ipcl_tcp_lookup_reversed_ipv4()
2545 conn_t *tconnp; in ipcl_tcp_lookup_reversed_ipv6() local
2555 for (tconnp = connfp->connf_head; tconnp != NULL; in ipcl_tcp_lookup_reversed_ipv6()
2556 tconnp = tconnp->conn_next) { in ipcl_tcp_lookup_reversed_ipv6()
2558 tcp = tconnp->conn_tcp; in ipcl_tcp_lookup_reversed_ipv6()
2559 if (IPCL_CONN_MATCH_V6(tconnp, IPPROTO_TCP, in ipcl_tcp_lookup_reversed_ipv6()
2562 (tconnp->conn_bound_if == 0 || in ipcl_tcp_lookup_reversed_ipv6()
2563 tconnp->conn_bound_if == ifindex)) { in ipcl_tcp_lookup_reversed_ipv6()
2565 CONN_INC_REF(tconnp); in ipcl_tcp_lookup_reversed_ipv6()
2567 return (tconnp); in ipcl_tcp_lookup_reversed_ipv6()