]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45035442afe09afde6b76e8d732a32f9e5651b94
tree4f3c2b208d3f61a268139561e9d94f9d106b3946
parentd9001510b9332a012ff507260661df6b2156b7e6
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