Searched refs:frh (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.10/net/decnet/ |
D | dn_rules.c | 123 struct fib_rule_hdr *frh, in dn_fib_rule_configure() argument 130 if (frh->tos) { in dn_fib_rule_configure() 149 if (frh->src_len) in dn_fib_rule_configure() 152 if (frh->dst_len) in dn_fib_rule_configure() 155 r->src_len = frh->src_len; in dn_fib_rule_configure() 157 r->dst_len = frh->dst_len; in dn_fib_rule_configure() 164 static int dn_fib_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in dn_fib_rule_compare() argument 169 if (frh->src_len && (r->src_len != frh->src_len)) in dn_fib_rule_compare() 172 if (frh->dst_len && (r->dst_len != frh->dst_len)) in dn_fib_rule_compare() 175 if (frh->src_len && (r->src != nla_get_le16(tb[FRA_SRC]))) in dn_fib_rule_compare() [all …]
|
/Linux-v5.10/net/ipv4/ |
D | fib_rules.c | 224 struct fib_rule_hdr *frh, in fib4_rule_configure() argument 232 if (frh->tos & ~IPTOS_TOS_MASK) { in fib4_rule_configure() 256 if (frh->src_len) in fib4_rule_configure() 259 if (frh->dst_len) in fib4_rule_configure() 273 rule4->src_len = frh->src_len; in fib4_rule_configure() 275 rule4->dst_len = frh->dst_len; in fib4_rule_configure() 277 rule4->tos = frh->tos; in fib4_rule_configure() 309 static int fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib4_rule_compare() argument 314 if (frh->src_len && (rule4->src_len != frh->src_len)) in fib4_rule_compare() 317 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare() [all …]
|
D | ipmr.c | 203 struct fib_rule_hdr *frh, struct nlattr **tb, in ipmr_rule_configure() argument 209 static int ipmr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ipmr_rule_compare() argument 216 struct fib_rule_hdr *frh) in ipmr_rule_fill() argument 218 frh->dst_len = 0; in ipmr_rule_fill() 219 frh->src_len = 0; in ipmr_rule_fill() 220 frh->tos = 0; in ipmr_rule_fill()
|
/Linux-v5.10/net/core/ |
D | fib_rules.c | 418 struct fib_rule_hdr *frh, in rule_find() argument 487 if (!ops->compare(r, frh, tb)) in rule_find() 524 struct fib_rule_hdr *frh = nlmsg_data(nlh); in fib_nl2rule() local 528 if (frh->src_len) in fib_nl2rule() 530 frh->src_len > (ops->addr_size * 8) || in fib_nl2rule() 536 if (frh->dst_len) in fib_nl2rule() 538 frh->dst_len > (ops->addr_size * 8) || in fib_nl2rule() 602 nlrule->action = frh->action; in fib_nl2rule() 603 nlrule->flags = frh->flags; in fib_nl2rule() 604 nlrule->table = frh_get_table(frh, tb); in fib_nl2rule() [all …]
|
/Linux-v5.10/net/ipv6/ |
D | fib6_rules.c | 348 struct fib_rule_hdr *frh, in fib6_rule_configure() argument 368 if (frh->src_len) in fib6_rule_configure() 371 if (frh->dst_len) in fib6_rule_configure() 374 rule6->src.plen = frh->src_len; in fib6_rule_configure() 375 rule6->dst.plen = frh->dst_len; in fib6_rule_configure() 376 rule6->tclass = frh->tos; in fib6_rule_configure() 398 static int fib6_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib6_rule_compare() argument 403 if (frh->src_len && (rule6->src.plen != frh->src_len)) in fib6_rule_compare() 406 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare() 409 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare() [all …]
|
D | ip6mr.c | 190 struct fib_rule_hdr *frh, struct nlattr **tb, in ip6mr_rule_configure() argument 196 static int ip6mr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ip6mr_rule_compare() argument 203 struct fib_rule_hdr *frh) in ip6mr_rule_fill() argument 205 frh->dst_len = 0; in ip6mr_rule_fill() 206 frh->src_len = 0; in ip6mr_rule_fill() 207 frh->tos = 0; in ip6mr_rule_fill()
|
/Linux-v5.10/include/net/ |
D | fib_rules.h | 151 static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) in frh_get_table() argument 155 return frh->table; in frh_get_table()
|
/Linux-v5.10/drivers/net/ |
D | vrf.c | 1482 struct fib_rule_hdr *frh; in vrf_fib_rule() local 1495 nlh = nlmsg_put(skb, 0, 0, 0, sizeof(*frh), 0); in vrf_fib_rule() 1502 frh = nlmsg_data(nlh); in vrf_fib_rule() 1503 memset(frh, 0, sizeof(*frh)); in vrf_fib_rule() 1504 frh->family = family; in vrf_fib_rule() 1505 frh->action = FR_ACT_TO_TBL; in vrf_fib_rule()
|