Arnaud Ebalard
20c59de2e6
ipv6: Refactor update of IPv6 flowi destination address for srcrt (RH) option
...
There are more than a dozen occurrences of following code in the
IPv6 stack:
if (opt && opt->srcrt) {
struct rt0_hdr *rt0 = (struct rt0_hdr *) opt->srcrt;
ipv6_addr_copy(&final, &fl.fl6_dst);
ipv6_addr_copy(&fl.fl6_dst, rt0->addr);
final_p = &final;
}
Replace those with a helper. Note that the helper overrides final_p
in all cases. This is ok as final_p was previously initialized to
NULL when declared.
Signed-off-by: Arnaud Ebalard <arno@natisbad.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2010-06-02 07:08:31 -07:00
..
2010-05-25 08:07:02 -07:00
2010-04-11 14:53:53 -07:00
2010-05-17 17:44:35 -07:00
2010-04-11 14:53:53 -07:00
2010-05-17 23:23:14 -07:00
2010-04-20 16:37:13 -07:00
2010-05-17 23:23:14 -07:00
2010-05-21 09:37:31 -07:00
2010-05-31 00:24:16 -07:00
2010-05-31 00:24:11 -07:00
2010-06-02 05:09:29 -07:00
2010-03-30 22:02:32 +09:00
2010-06-02 07:08:31 -07:00
2010-05-17 23:23:14 -07:00
2010-04-11 14:53:53 -07:00
2010-03-30 22:02:32 +09:00
2010-05-02 02:21:44 -07:00
2010-05-23 23:11:07 -07:00
2010-06-02 07:05:03 -07:00
2010-06-02 07:08:31 -07:00
2010-03-30 22:02:32 +09:00
2010-05-17 23:23:14 -07:00
2010-05-28 10:18:40 -07:00
2010-05-17 23:23:13 -07:00
2010-04-23 16:37:33 -07:00
2010-03-30 22:02:32 +09:00
2010-05-12 00:05:35 -07:00
2010-05-31 00:10:35 -07:00
2010-06-02 05:16:23 -07:00
2010-05-17 23:23:14 -07:00
2010-05-21 09:37:32 -07:00
2010-04-20 16:37:13 -07:00
2010-06-02 05:53:56 -07:00
2010-05-29 00:18:50 -07:00
2010-05-29 00:18:48 -07:00
2010-04-11 14:53:53 -07:00
2010-04-20 16:37:13 -07:00
2010-05-01 15:00:15 -07:00
2010-06-02 05:09:29 -07:00
2010-05-17 23:23:14 -07:00
2010-05-26 08:43:50 -04:00
2010-05-12 23:02:29 -07:00
2010-05-03 15:39:58 -07:00
2009-07-12 12:22:34 -07:00
2010-05-20 21:04:44 -07:00
2010-05-21 14:40:01 -04:00
2010-05-17 17:39:28 -07:00
2010-05-17 23:23:14 -07:00
2010-03-30 22:02:32 +09:00
2010-05-21 09:37:32 -07:00
2010-04-03 14:56:02 -07:00
2010-05-24 00:12:34 -07:00
2010-05-17 23:23:14 -07:00