fib_rules.c (8b3521eeb7598c3b10c7e14361a7974464527702) | fib_rules.c (04af8cf6f320031090ab6fa4600b912b0c18fb4b) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * IPv4 Forwarding Information Base: policy rules. 7 * 8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 195 unchanged lines hidden (view full) --- 204 205 if (frh->dst_len && (rule4->dst != nla_get_be32(tb[FRA_DST]))) 206 return 0; 207 208 return 1; 209} 210 211static int fib4_rule_fill(struct fib_rule *rule, struct sk_buff *skb, | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * IPv4 Forwarding Information Base: policy rules. 7 * 8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 195 unchanged lines hidden (view full) --- 204 205 if (frh->dst_len && (rule4->dst != nla_get_be32(tb[FRA_DST]))) 206 return 0; 207 208 return 1; 209} 210 211static int fib4_rule_fill(struct fib_rule *rule, struct sk_buff *skb, |
212 struct nlmsghdr *nlh, struct fib_rule_hdr *frh) | 212 struct fib_rule_hdr *frh) |
213{ 214 struct fib4_rule *rule4 = (struct fib4_rule *) rule; 215 216 frh->family = AF_INET; 217 frh->dst_len = rule4->dst_len; 218 frh->src_len = rule4->src_len; 219 frh->tos = rule4->tos; 220 --- 109 unchanged lines hidden --- | 213{ 214 struct fib4_rule *rule4 = (struct fib4_rule *) rule; 215 216 frh->family = AF_INET; 217 frh->dst_len = rule4->dst_len; 218 frh->src_len = rule4->src_len; 219 frh->tos = rule4->tos; 220 --- 109 unchanged lines hidden --- |