Searched refs:frh (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/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-v4.19/net/ipv4/ |
D | fib_rules.c | 215 struct fib_rule_hdr *frh, in fib4_rule_configure() argument 223 if (frh->tos & ~IPTOS_TOS_MASK) { in fib4_rule_configure() 247 if (frh->src_len) in fib4_rule_configure() 250 if (frh->dst_len) in fib4_rule_configure() 264 rule4->src_len = frh->src_len; in fib4_rule_configure() 266 rule4->dst_len = frh->dst_len; in fib4_rule_configure() 268 rule4->tos = frh->tos; in fib4_rule_configure() 300 static int fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib4_rule_compare() argument 305 if (frh->src_len && (rule4->src_len != frh->src_len)) in fib4_rule_compare() 308 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare() [all …]
|
D | ipmr.c | 205 struct fib_rule_hdr *frh, struct nlattr **tb, in ipmr_rule_configure() argument 211 static int ipmr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ipmr_rule_compare() argument 218 struct fib_rule_hdr *frh) in ipmr_rule_fill() argument 220 frh->dst_len = 0; in ipmr_rule_fill() 221 frh->src_len = 0; in ipmr_rule_fill() 222 frh->tos = 0; in ipmr_rule_fill()
|
/Linux-v4.19/net/ipv6/ |
D | fib6_rules.c | 339 struct fib_rule_hdr *frh, in fib6_rule_configure() argument 359 if (frh->src_len) in fib6_rule_configure() 362 if (frh->dst_len) in fib6_rule_configure() 365 rule6->src.plen = frh->src_len; in fib6_rule_configure() 366 rule6->dst.plen = frh->dst_len; in fib6_rule_configure() 367 rule6->tclass = frh->tos; in fib6_rule_configure() 389 static int fib6_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib6_rule_compare() argument 394 if (frh->src_len && (rule6->src.plen != frh->src_len)) in fib6_rule_compare() 397 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare() 400 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare() [all …]
|
D | ip6mr.c | 184 struct fib_rule_hdr *frh, struct nlattr **tb, in ip6mr_rule_configure() argument 190 static int ip6mr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ip6mr_rule_compare() argument 197 struct fib_rule_hdr *frh) in ip6mr_rule_fill() argument 199 frh->dst_len = 0; in ip6mr_rule_fill() 200 frh->src_len = 0; in ip6mr_rule_fill() 201 frh->tos = 0; in ip6mr_rule_fill()
|
/Linux-v4.19/net/core/ |
D | fib_rules.c | 391 struct fib_rule_hdr *frh, in rule_find() argument 460 if (!ops->compare(r, frh, tb)) in rule_find() 497 struct fib_rule_hdr *frh = nlmsg_data(nlh); in fib_nl2rule() local 501 if (frh->src_len) in fib_nl2rule() 503 frh->src_len > (ops->addr_size * 8) || in fib_nl2rule() 509 if (frh->dst_len) in fib_nl2rule() 511 frh->dst_len > (ops->addr_size * 8) || in fib_nl2rule() 575 nlrule->action = frh->action; in fib_nl2rule() 576 nlrule->flags = frh->flags; in fib_nl2rule() 577 nlrule->table = frh_get_table(frh, tb); in fib_nl2rule() [all …]
|
/Linux-v4.19/include/net/ |
D | fib_rules.h | 148 static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) in frh_get_table() argument 152 return frh->table; in frh_get_table()
|
/Linux-v4.19/drivers/net/ |
D | vrf.c | 1144 struct fib_rule_hdr *frh; in vrf_fib_rule() local 1156 nlh = nlmsg_put(skb, 0, 0, 0, sizeof(*frh), 0); in vrf_fib_rule() 1163 frh = nlmsg_data(nlh); in vrf_fib_rule() 1164 memset(frh, 0, sizeof(*frh)); in vrf_fib_rule() 1165 frh->family = family; in vrf_fib_rule() 1166 frh->action = FR_ACT_TO_TBL; in vrf_fib_rule()
|