Lines Matching refs:frh
345 struct fib_rule_hdr *frh, in fib6_rule_configure() argument
353 if (!inet_validate_dscp(frh->tos)) { in fib6_rule_configure()
358 rule6->dscp = inet_dsfield_to_dscp(frh->tos); in fib6_rule_configure()
372 if (frh->src_len) in fib6_rule_configure()
375 if (frh->dst_len) in fib6_rule_configure()
378 rule6->src.plen = frh->src_len; in fib6_rule_configure()
379 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
401 static int fib6_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib6_rule_compare() argument
406 if (frh->src_len && (rule6->src.plen != frh->src_len)) in fib6_rule_compare()
409 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare()
412 if (frh->tos && inet_dscp_to_dsfield(rule6->dscp) != frh->tos) in fib6_rule_compare()
415 if (frh->src_len && in fib6_rule_compare()
419 if (frh->dst_len && in fib6_rule_compare()
427 struct fib_rule_hdr *frh) in fib6_rule_fill() argument
431 frh->dst_len = rule6->dst.plen; in fib6_rule_fill()
432 frh->src_len = rule6->src.plen; in fib6_rule_fill()
433 frh->tos = inet_dscp_to_dsfield(rule6->dscp); in fib6_rule_fill()