]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Simplify iph->daddr overwrite in ip_options_rcv_srr().
authorDavid S. Miller <davem@davemloft.net>
Thu, 12 May 2011 23:30:58 +0000 (19:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 May 2011 23:30:58 +0000 (19:30 -0400)
commite2674bdf69253600d7705dcc1b4628c86c680799
tree3446d93477df0997410dc770a2a7f08e233025c2
parent152d4f07cc39a9d10ea4177e1f8ded1844848935
ipv4: Simplify iph->daddr overwrite in ip_options_rcv_srr().

We already copy the 4-byte nexthop from the options block into
local variable "nexthop" for the route lookup.

Re-use that variable instead of memcpy()'ing again when assigning
to iph->daddr after the route lookup succeeds.

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