Lines Matching refs:frh
88 struct fib_rule_hdr *frh; in rule_msg_parser() local
99 frh = nlmsg_data(n); in rule_msg_parser()
101 err = nlmsg_parse(n, sizeof(*frh), tb, FRA_MAX, rule_policy); in rule_msg_parser()
105 rule->r_family = family = frh->family; in rule_msg_parser()
106 rule->r_table = frh->table; in rule_msg_parser()
107 rule->r_action = frh->action; in rule_msg_parser()
108 rule->r_flags = frh->flags; in rule_msg_parser()
114 if (frh->tos) { in rule_msg_parser()
115 rule->r_dsfield = frh->tos; in rule_msg_parser()
158 nl_addr_set_prefixlen(rule->r_src, frh->src_len); in rule_msg_parser()
165 nl_addr_set_prefixlen(rule->r_dst, frh->dst_len); in rule_msg_parser()
362 struct fib_rule_hdr frh = { in build_rule_msg() local
378 frh.src_len = nl_addr_get_prefixlen(tmpl->r_src); in build_rule_msg()
381 frh.dst_len = nl_addr_get_prefixlen(tmpl->r_dst); in build_rule_msg()
383 if (nlmsg_append(msg, &frh, sizeof(frh), NLMSG_ALIGNTO) < 0) in build_rule_msg()