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-06-02 05:16:23 -07:00
2010-02-22 16:20:22 -08:00
2010-04-20 19:06:52 -07:00
2010-02-22 16:20:22 -08:00
2010-05-11 14:40:55 +02:00
2009-09-14 17:03:05 -07:00
2010-05-28 23:02:35 -07:00
2010-06-01 00:26:58 -07:00
2010-01-17 19:16:02 -08:00