Lines Matching defs:frh
221 struct fib_rule_hdr *frh,
229 if (!inet_validate_dscp(frh->tos)) {
235 if (frh->tos & ~IPTOS_TOS_MASK) {
239 rule4->dscp = inet_dsfield_to_dscp(frh->tos);
260 if (frh->src_len)
263 if (frh->dst_len)
277 rule4->src_len = frh->src_len;
279 rule4->dst_len = frh->dst_len;
312 static int fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh,
317 if (frh->src_len && (rule4->src_len != frh->src_len))
320 if (frh->dst_len && (rule4->dst_len != frh->dst_len))
323 if (frh->tos && inet_dscp_to_dsfield(rule4->dscp) != frh->tos)
331 if (frh->src_len && (rule4->src != nla_get_in_addr(tb[FRA_SRC])))
334 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DST])))
341 struct fib_rule_hdr *frh)
345 frh->dst_len = rule4->dst_len;
346 frh->src_len = rule4->src_len;
347 frh->tos = inet_dscp_to_dsfield(rule4->dscp);