Searched refs:frh (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/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.4/net/ipv4/ |
D | fib_rules.c | 219 struct fib_rule_hdr *frh, in fib4_rule_configure() argument 227 if (frh->tos & ~IPTOS_TOS_MASK) { in fib4_rule_configure() 251 if (frh->src_len) in fib4_rule_configure() 254 if (frh->dst_len) in fib4_rule_configure() 268 rule4->src_len = frh->src_len; in fib4_rule_configure() 270 rule4->dst_len = frh->dst_len; in fib4_rule_configure() 272 rule4->tos = frh->tos; in fib4_rule_configure() 304 static int fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib4_rule_compare() argument 309 if (frh->src_len && (rule4->src_len != frh->src_len)) in fib4_rule_compare() 312 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare() [all …]
|
D | ipmr.c | 201 struct fib_rule_hdr *frh, struct nlattr **tb, in ipmr_rule_configure() argument 207 static int ipmr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ipmr_rule_compare() argument 214 struct fib_rule_hdr *frh) in ipmr_rule_fill() argument 216 frh->dst_len = 0; in ipmr_rule_fill() 217 frh->src_len = 0; in ipmr_rule_fill() 218 frh->tos = 0; in ipmr_rule_fill()
|
/Linux-v5.4/net/core/ |
D | fib_rules.c | 388 struct fib_rule_hdr *frh, in rule_find() argument 457 if (!ops->compare(r, frh, tb)) in rule_find() 494 struct fib_rule_hdr *frh = nlmsg_data(nlh); in fib_nl2rule() local 498 if (frh->src_len) in fib_nl2rule() 500 frh->src_len > (ops->addr_size * 8) || in fib_nl2rule() 506 if (frh->dst_len) in fib_nl2rule() 508 frh->dst_len > (ops->addr_size * 8) || in fib_nl2rule() 572 nlrule->action = frh->action; in fib_nl2rule() 573 nlrule->flags = frh->flags; in fib_nl2rule() 574 nlrule->table = frh_get_table(frh, tb); in fib_nl2rule() [all …]
|
/Linux-v5.4/net/ipv6/ |
D | fib6_rules.c | 340 struct fib_rule_hdr *frh, in fib6_rule_configure() argument 360 if (frh->src_len) in fib6_rule_configure() 363 if (frh->dst_len) in fib6_rule_configure() 366 rule6->src.plen = frh->src_len; in fib6_rule_configure() 367 rule6->dst.plen = frh->dst_len; in fib6_rule_configure() 368 rule6->tclass = frh->tos; in fib6_rule_configure() 390 static int fib6_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib6_rule_compare() argument 395 if (frh->src_len && (rule6->src.plen != frh->src_len)) in fib6_rule_compare() 398 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare() 401 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare() [all …]
|
D | ip6mr.c | 188 struct fib_rule_hdr *frh, struct nlattr **tb, in ip6mr_rule_configure() argument 194 static int ip6mr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ip6mr_rule_compare() argument 201 struct fib_rule_hdr *frh) in ip6mr_rule_fill() argument 203 frh->dst_len = 0; in ip6mr_rule_fill() 204 frh->src_len = 0; in ip6mr_rule_fill() 205 frh->tos = 0; in ip6mr_rule_fill()
|
/Linux-v5.4/include/net/ |
D | fib_rules.h | 149 static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) in frh_get_table() argument 153 return frh->table; in frh_get_table()
|
/Linux-v5.4/drivers/net/ |
D | vrf.c | 1151 struct fib_rule_hdr *frh; in vrf_fib_rule() local 1164 nlh = nlmsg_put(skb, 0, 0, 0, sizeof(*frh), 0); in vrf_fib_rule() 1171 frh = nlmsg_data(nlh); in vrf_fib_rule() 1172 memset(frh, 0, sizeof(*frh)); in vrf_fib_rule() 1173 frh->family = family; in vrf_fib_rule() 1174 frh->action = FR_ACT_TO_TBL; in vrf_fib_rule()
|