Home
last modified time | relevance | path

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

/linux-4.1.27/net/decnet/
Ddn_rules.c122 struct fib_rule_hdr *frh, in dn_fib_rule_configure() argument
128 if (frh->tos) in dn_fib_rule_configure()
145 if (frh->src_len) in dn_fib_rule_configure()
148 if (frh->dst_len) in dn_fib_rule_configure()
151 r->src_len = frh->src_len; in dn_fib_rule_configure()
153 r->dst_len = frh->dst_len; in dn_fib_rule_configure()
160 static int dn_fib_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in dn_fib_rule_compare() argument
165 if (frh->src_len && (r->src_len != frh->src_len)) in dn_fib_rule_compare()
168 if (frh->dst_len && (r->dst_len != frh->dst_len)) in dn_fib_rule_compare()
171 if (frh->src_len && (r->src != nla_get_le16(tb[FRA_SRC]))) in dn_fib_rule_compare()
[all …]
/linux-4.1.27/net/ipv4/
Dfib_rules.c167 struct fib_rule_hdr *frh, in fib4_rule_configure() argument
174 if (frh->tos & ~IPTOS_TOS_MASK) in fib4_rule_configure()
196 if (frh->src_len) in fib4_rule_configure()
199 if (frh->dst_len) in fib4_rule_configure()
210 rule4->src_len = frh->src_len; in fib4_rule_configure()
212 rule4->dst_len = frh->dst_len; in fib4_rule_configure()
214 rule4->tos = frh->tos; in fib4_rule_configure()
244 static int fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib4_rule_compare() argument
249 if (frh->src_len && (rule4->src_len != frh->src_len)) in fib4_rule_compare()
252 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare()
[all …]
Dipmr.c208 struct fib_rule_hdr *frh, struct nlattr **tb) in ipmr_rule_configure() argument
213 static int ipmr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ipmr_rule_compare() argument
220 struct fib_rule_hdr *frh) in ipmr_rule_fill() argument
222 frh->dst_len = 0; in ipmr_rule_fill()
223 frh->src_len = 0; in ipmr_rule_fill()
224 frh->tos = 0; in ipmr_rule_fill()
/linux-4.1.27/net/ipv6/
Dfib6_rules.c184 struct fib_rule_hdr *frh, in fib6_rule_configure() argument
201 if (frh->src_len) in fib6_rule_configure()
204 if (frh->dst_len) in fib6_rule_configure()
207 rule6->src.plen = frh->src_len; in fib6_rule_configure()
208 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
209 rule6->tclass = frh->tos; in fib6_rule_configure()
216 static int fib6_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib6_rule_compare() argument
221 if (frh->src_len && (rule6->src.plen != frh->src_len)) in fib6_rule_compare()
224 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare()
227 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare()
[all …]
Dip6mr.c192 struct fib_rule_hdr *frh, struct nlattr **tb) in ip6mr_rule_configure() argument
197 static int ip6mr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ip6mr_rule_compare() argument
204 struct fib_rule_hdr *frh) in ip6mr_rule_fill() argument
206 frh->dst_len = 0; in ip6mr_rule_fill()
207 frh->src_len = 0; in ip6mr_rule_fill()
208 frh->tos = 0; in ip6mr_rule_fill()
/linux-4.1.27/net/core/
Dfib_rules.c243 static int validate_rulemsg(struct fib_rule_hdr *frh, struct nlattr **tb, in validate_rulemsg() argument
248 if (frh->src_len) in validate_rulemsg()
250 frh->src_len > (ops->addr_size * 8) || in validate_rulemsg()
254 if (frh->dst_len) in validate_rulemsg()
256 frh->dst_len > (ops->addr_size * 8) || in validate_rulemsg()
268 struct fib_rule_hdr *frh = nlmsg_data(nlh); in fib_nl_newrule() local
274 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh))) in fib_nl_newrule()
277 ops = lookup_rules_ops(net, frh->family); in fib_nl_newrule()
283 err = nlmsg_parse(nlh, sizeof(*frh), tb, FRA_MAX, ops->policy); in fib_nl_newrule()
287 err = validate_rulemsg(frh, tb, ops); in fib_nl_newrule()
[all …]
/linux-4.1.27/include/net/
Dfib_rules.h104 static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) in frh_get_table() argument
108 return frh->table; in frh_get_table()