Home | History | Annotate | Download | only in netinet

Lines Matching refs:is2

166 static int ipf_state_match(ipstate_t *is1, ipstate_t *is2);
167 static int ipf_state_matchaddresses(ipstate_t *is1, ipstate_t *is2);
168 static int ipf_state_matchipv4addrs(ipstate_t *is1, ipstate_t *is2);
169 static int ipf_state_matchipv6addrs(ipstate_t *is1, ipstate_t *is2);
170 static int ipf_state_matchisps(ipstate_t *is1, ipstate_t *is2);
171 static int ipf_state_matchports(udpinfo_t *is1, udpinfo_t *is2);
1138 /* Parameters: is1, is2 pointers to states we are checking */
1144 ipf_state_matchipv4addrs(ipstate_t *is1, ipstate_t *is2)
1148 if (is1->is_saddr == is2->is_saddr && is1->is_daddr == is2->is_daddr)
1150 else if (is1->is_saddr == is2->is_daddr &&
1151 is1->is_daddr == is2->is_saddr) {
1166 /* Parameters: is1, is2 pointers to states we are checking */
1172 ipf_state_matchipv6addrs(ipstate_t *is1, ipstate_t *is2)
1176 if (IP6_EQ(&is1->is_src, &is2->is_src) &&
1177 IP6_EQ(&is1->is_dst, &is2->is_dst))
1179 else if (IP6_EQ(&is1->is_src, &is2->is_dst) &&
1180 IP6_EQ(&is1->is_dst, &is2->is_src)) {
1194 /* Parameters: is1, is2 pointers to states we are checking */
1205 /* retreives is1 record created by first packat and compares it with is2 */
1206 /* temporal record, is2 is initialized as follows: */
1207 /* is2->src = 1.1.1.2 */
1208 /* is2->dst = 1.1.1.1 */
1216 ipf_state_matchaddresses(ipstate_t *is1, ipstate_t *is2)
1221 rv = ipf_state_matchipv4addrs(is1, is2);
1224 rv = ipf_state_matchipv6addrs(is1, is2);
1259 /* Parameters: is1, is2 - states we want to match */
1264 ipf_state_matchisps(ipstate_t *is1, ipstate_t *is2)
1268 if (is1->is_p == is2->is_p) {
1276 &is2->is_ps.is_us);
1282 if (bcmp(&is1->is_ps, &is2->is_ps,
1304 /* Parameters: is1, is2 - states we want to match */
1308 ipf_state_match(ipstate_t *is1, ipstate_t *is2)
1314 if (bcmp(&is1->is_pass, &is2->is_pass,
1318 pomatch = ipf_state_matchisps(is1, is2);
1319 amatch = ipf_state_matchaddresses(is1, is2);