ipv4: In ip_build_and_send_pkt() use 'saddr' and 'daddr' args passed in.
authorDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2011 19:03:30 +0000 (12:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2011 19:03:30 +0000 (12:03 -0700)
commitdd927a2694ee412b440284dd72dd8e32caada3fc
tree4f3c2b208d3f61a268139561e9d94f9d106b3946
parent69458cb194e82972347a004054e0baed719ed008
ipv4: In ip_build_and_send_pkt() use 'saddr' and 'daddr' args passed in.

Instead of rt->rt_{dst,src}

The only tricky part is source route option handling.

If the source route option is enabled we can't just use plain 'daddr',
we have to use opt->opt.faddr.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c