Searched refs:frh (Results 1 – 7 of 7) sorted by relevance
/linux-4.4.14/net/decnet/ |
D | dn_rules.c | 122 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.4.14/net/ipv4/ |
D | fib_rules.c | 168 struct fib_rule_hdr *frh, in fib4_rule_configure() argument 175 if (frh->tos & ~IPTOS_TOS_MASK) in fib4_rule_configure() 197 if (frh->src_len) in fib4_rule_configure() 200 if (frh->dst_len) in fib4_rule_configure() 211 rule4->src_len = frh->src_len; in fib4_rule_configure() 213 rule4->dst_len = frh->dst_len; in fib4_rule_configure() 215 rule4->tos = frh->tos; in fib4_rule_configure() 245 static int fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib4_rule_compare() argument 250 if (frh->src_len && (rule4->src_len != frh->src_len)) in fib4_rule_compare() 253 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare() [all …]
|
D | ipmr.c | 208 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.4.14/net/ipv6/ |
D | fib6_rules.c | 195 struct fib_rule_hdr *frh, in fib6_rule_configure() argument 212 if (frh->src_len) in fib6_rule_configure() 215 if (frh->dst_len) in fib6_rule_configure() 218 rule6->src.plen = frh->src_len; in fib6_rule_configure() 219 rule6->dst.plen = frh->dst_len; in fib6_rule_configure() 220 rule6->tclass = frh->tos; in fib6_rule_configure() 227 static int fib6_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in fib6_rule_compare() argument 232 if (frh->src_len && (rule6->src.plen != frh->src_len)) in fib6_rule_compare() 235 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare() 238 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare() [all …]
|
D | ip6mr.c | 192 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.4.14/net/core/ |
D | fib_rules.c | 246 static int validate_rulemsg(struct fib_rule_hdr *frh, struct nlattr **tb, in validate_rulemsg() argument 251 if (frh->src_len) in validate_rulemsg() 253 frh->src_len > (ops->addr_size * 8) || in validate_rulemsg() 257 if (frh->dst_len) in validate_rulemsg() 259 frh->dst_len > (ops->addr_size * 8) || in validate_rulemsg() 271 struct fib_rule_hdr *frh = nlmsg_data(nlh); in fib_nl_newrule() local 277 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh))) in fib_nl_newrule() 280 ops = lookup_rules_ops(net, frh->family); in fib_nl_newrule() 286 err = nlmsg_parse(nlh, sizeof(*frh), tb, FRA_MAX, ops->policy); in fib_nl_newrule() 290 err = validate_rulemsg(frh, tb, ops); in fib_nl_newrule() [all …]
|
/linux-4.4.14/include/net/ |
D | fib_rules.h | 105 static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) in frh_get_table() argument 109 return frh->table; in frh_get_table()
|