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