Home | History | Annotate | Download | only in libaltq

Lines Matching defs:back

1038 	struct fltrinfo *fp, *front, *back, *prev = NULL;
1044 back = fltrinfo;
1048 back = fp;
1051 relation = filt_check_relation(&front->fltr, &back->fltr);
1059 if (front->dontwarn == 0 && back->dontwarn == 0)
1063 back->clinfo->clname, back->line_no);
1075 if (front->clinfo == back->clinfo)
1077 if (front->dontwarn == 0 && back->dontwarn == 0)
1081 back->clinfo->clname, back->line_no);
1101 filt_check_relation(struct flow_filter *front, struct flow_filter *back)
1105 if (front->ff_flow.fi_family != back->ff_flow.fi_family)
1108 if (filt_disjoint(front, back))
1111 if ((rval = filt_subset(front, back)) == 1)
1114 if (filt_subset(back, front) == 1)
1124 filt_disjoint(struct flow_filter *front, struct flow_filter *back)
1130 if (front->ff_flow.fi_proto != 0 && back->ff_flow.fi_proto != 0
1131 && front->ff_flow.fi_proto != back->ff_flow.fi_proto)
1133 if (front->ff_flow.fi_sport != 0 && back->ff_flow.fi_sport != 0
1134 && front->ff_flow.fi_sport != back->ff_flow.fi_sport)
1136 if (front->ff_flow.fi_dport != 0 && back->ff_flow.fi_dport != 0
1137 && front->ff_flow.fi_dport != back->ff_flow.fi_dport)
1139 if (front->ff_flow.fi_gpi != 0 && back->ff_flow.fi_gpi != 0
1140 && front->ff_flow.fi_gpi != back->ff_flow.fi_gpi)
1143 back->ff_flow.fi_src.s_addr != 0) {
1145 back->ff_mask.mask_src.s_addr;
1147 (back->ff_flow.fi_src.s_addr & mask))
1151 back->ff_flow.fi_dst.s_addr != 0) {
1153 back->ff_mask.mask_dst.s_addr;
1155 (back->ff_flow.fi_dst.s_addr & mask))
1158 if (front->ff_flow.fi_tos != 0 && back->ff_flow.fi_tos != 0) {
1160 back->ff_mask.mask_tos;
1162 (back->ff_flow.fi_tos & tosmask))
1173 back6 = (struct flow_filter6 *)back;
1231 * check if "front" is a subset of "back". assumes they are not disjoint
1238 filt_subset(struct flow_filter *front, struct flow_filter *back)
1244 back->ff_flow.fi_proto != 0)
1246 if (front->ff_flow.fi_gpi == 0 && back->ff_flow.fi_gpi != 0)
1249 if (back->ff_flow.fi_src.s_addr != 0)
1251 } else if (back->ff_flow.fi_src.s_addr != 0 &&
1253 back->ff_mask.mask_src.s_addr))
1256 if (back->ff_flow.fi_dst.s_addr != 0)
1258 } else if (back->ff_flow.fi_dst.s_addr != 0 &&
1260 back->ff_mask.mask_dst.s_addr))
1262 if (~front->ff_mask.mask_tos & back->ff_mask.mask_tos)
1266 back->ff_flow.fi_sport != 0) {
1267 srcport = ntohs(back->ff_flow.fi_sport);
1275 back->ff_flow.fi_dport != 0) {
1276 dstport = ntohs(back->ff_flow.fi_dport);
1292 back6 = (struct flow_filter6 *)back;