Home
last modified time | relevance | path

Searched refs:frh (Results 1 – 6 of 6) sorted by relevance

/net/decnet/
Ddn_rules.c123 struct fib_rule_hdr *frh, in dn_fib_rule_configure() argument
129 if (frh->tos) in dn_fib_rule_configure()
146 if (frh->src_len) in dn_fib_rule_configure()
149 if (frh->dst_len) in dn_fib_rule_configure()
152 r->src_len = frh->src_len; in dn_fib_rule_configure()
154 r->dst_len = frh->dst_len; in dn_fib_rule_configure()
161 static int dn_fib_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in dn_fib_rule_compare() argument
166 if (frh->src_len && (r->src_len != frh->src_len)) in dn_fib_rule_compare()
169 if (frh->dst_len && (r->dst_len != frh->dst_len)) in dn_fib_rule_compare()
172 if (frh->src_len && (r->src != nla_get_le16(tb[FRA_SRC]))) in dn_fib_rule_compare()
[all …]
/net/ipv4/
Dfib_rules.c204 struct fib_rule_hdr *frh, in fib4_rule_configure() argument
211 if (frh->tos & ~IPTOS_TOS_MASK) in fib4_rule_configure()
233 if (frh->src_len) in fib4_rule_configure()
236 if (frh->dst_len) in fib4_rule_configure()
247 rule4->src_len = frh->src_len; in fib4_rule_configure()
249 rule4->dst_len = frh->dst_len; in fib4_rule_configure()
251 rule4->tos = frh->tos; in fib4_rule_configure()
279 static int fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib4_rule_compare() argument
284 if (frh->src_len && (rule4->src_len != frh->src_len)) in fib4_rule_compare()
287 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare()
[all …]
Dipmr.c191 struct fib_rule_hdr *frh, struct nlattr **tb) in ipmr_rule_configure() argument
196 static int ipmr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ipmr_rule_compare() argument
203 struct fib_rule_hdr *frh) in ipmr_rule_fill() argument
205 frh->dst_len = 0; in ipmr_rule_fill()
206 frh->src_len = 0; in ipmr_rule_fill()
207 frh->tos = 0; in ipmr_rule_fill()
/net/ipv6/
Dfib6_rules.c234 struct fib_rule_hdr *frh, in fib6_rule_configure() argument
251 if (frh->src_len) in fib6_rule_configure()
254 if (frh->dst_len) in fib6_rule_configure()
257 rule6->src.plen = frh->src_len; in fib6_rule_configure()
258 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
259 rule6->tclass = frh->tos; in fib6_rule_configure()
267 static int fib6_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib6_rule_compare() argument
272 if (frh->src_len && (rule6->src.plen != frh->src_len)) in fib6_rule_compare()
275 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare()
278 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare()
[all …]
Dip6mr.c195 struct fib_rule_hdr *frh, struct nlattr **tb) in ip6mr_rule_configure() argument
200 static int ip6mr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ip6mr_rule_compare() argument
207 struct fib_rule_hdr *frh) in ip6mr_rule_fill() argument
209 frh->dst_len = 0; in ip6mr_rule_fill()
210 frh->src_len = 0; in ip6mr_rule_fill()
211 frh->tos = 0; in ip6mr_rule_fill()
/net/core/
Dfib_rules.c363 static int validate_rulemsg(struct fib_rule_hdr *frh, struct nlattr **tb, in validate_rulemsg() argument
368 if (frh->src_len) in validate_rulemsg()
370 frh->src_len > (ops->addr_size * 8) || in validate_rulemsg()
374 if (frh->dst_len) in validate_rulemsg()
376 frh->dst_len > (ops->addr_size * 8) || in validate_rulemsg()
385 static int rule_exists(struct fib_rules_ops *ops, struct fib_rule_hdr *frh, in rule_exists() argument
425 if (!ops->compare(r, frh, tb)) in rule_exists()
436 struct fib_rule_hdr *frh = nlmsg_data(nlh); in fib_nl_newrule() local
442 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh))) in fib_nl_newrule()
445 ops = lookup_rules_ops(net, frh->family); in fib_nl_newrule()
[all …]