fib6_rules.c (8b3521eeb7598c3b10c7e14361a7974464527702) | fib6_rules.c (04af8cf6f320031090ab6fa4600b912b0c18fb4b) |
---|---|
1/* 2 * net/ipv6/fib6_rules.c IPv6 Routing Policy Rules 3 * 4 * Copyright (C)2003-2006 Helsinki University of Technology 5 * Copyright (C)2003-2006 USAGI/WIDE Project 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 197 unchanged lines hidden (view full) --- 206 if (frh->dst_len && 207 nla_memcmp(tb[FRA_DST], &rule6->dst.addr, sizeof(struct in6_addr))) 208 return 0; 209 210 return 1; 211} 212 213static int fib6_rule_fill(struct fib_rule *rule, struct sk_buff *skb, | 1/* 2 * net/ipv6/fib6_rules.c IPv6 Routing Policy Rules 3 * 4 * Copyright (C)2003-2006 Helsinki University of Technology 5 * Copyright (C)2003-2006 USAGI/WIDE Project 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 197 unchanged lines hidden (view full) --- 206 if (frh->dst_len && 207 nla_memcmp(tb[FRA_DST], &rule6->dst.addr, sizeof(struct in6_addr))) 208 return 0; 209 210 return 1; 211} 212 213static int fib6_rule_fill(struct fib_rule *rule, struct sk_buff *skb, |
214 struct nlmsghdr *nlh, struct fib_rule_hdr *frh) | 214 struct fib_rule_hdr *frh) |
215{ 216 struct fib6_rule *rule6 = (struct fib6_rule *) rule; 217 218 frh->family = AF_INET6; 219 frh->dst_len = rule6->dst.plen; 220 frh->src_len = rule6->src.plen; 221 frh->tos = rule6->tclass; 222 --- 99 unchanged lines hidden --- | 215{ 216 struct fib6_rule *rule6 = (struct fib6_rule *) rule; 217 218 frh->family = AF_INET6; 219 frh->dst_len = rule6->dst.plen; 220 frh->src_len = rule6->src.plen; 221 frh->tos = rule6->tclass; 222 --- 99 unchanged lines hidden --- |