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-21 16:44:34 -05:00
2010-05-10 09:34:03 +02:00
2010-05-23 23:57:41 -07:00
2010-02-15 15:38:10 +01:00
2010-03-30 22:02:32 +09:00
2010-06-02 05:16:23 -07:00
2010-05-11 14:40:55 +02:00
2010-05-26 00:40:11 -07:00
2010-05-12 23:02:23 -07:00
2010-02-25 09:41:03 +01:00
2010-05-01 15:00:15 -07:00
2010-03-30 22:02:32 +09:00
2010-06-02 05:16:23 -07:00
2010-05-25 18:53:57 -07:00
2010-03-27 19:23:46 -07:00
2010-05-17 22:36:55 -07:00
2010-04-26 16:02:04 +02:00
2010-04-07 03:43:18 -07:00
2010-06-02 05:16:23 -07:00
2010-04-13 14:49:31 -07:00
2010-02-08 16:50:53 -05:00
2010-05-18 15:36:06 -07:00
2010-04-15 23:36:37 -07:00
2010-04-15 23:36:37 -07:00
2010-04-27 15:11:48 -07:00
2010-04-27 12:39:01 -07:00
2010-04-01 18:41:41 -07:00
2010-04-13 01:41:33 -07:00
2010-03-10 07:32:29 -08:00
2010-02-18 12:31:05 +01:00
2010-05-25 08:07:02 -07:00
2010-02-16 23:05:38 -08:00
2010-06-02 07:08:31 -07:00
2010-03-30 22:02:32 +09:00
2010-03-31 14:49:12 -04:00
2010-05-24 15:07:42 -04:00
2010-04-23 13:35:55 +09:00
2010-04-15 12:26:39 +02:00
2010-03-12 15:52:40 -08:00
2010-03-30 22:02:32 +09:00
2010-03-19 22:47:23 -07:00
2010-03-30 22:02:32 +09:00
2010-06-02 03:23:51 -07:00
2010-04-13 14:49:34 -07:00
2010-02-01 15:40:06 -05:00
2010-05-17 17:18:51 -07:00
2010-02-27 02:43:40 -08:00
2010-06-02 05:09:29 -07:00
2010-04-22 16:00:00 -07:00
2010-06-02 05:16:23 -07:00
2010-05-16 22:26:58 -07:00
2010-04-23 23:35:28 -07:00
2010-05-17 17:39:27 -07:00
2010-04-22 16:12:36 -07:00
2010-04-11 14:53:53 -07:00