summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_forward.c
diff options
context:
space:
mode:
authorDavid S. Miller2011-05-13 01:30:58 +0200
committerDavid S. Miller2011-05-13 01:30:58 +0200
commitc30883bdff0b3544900a5c4aba18b8985436878f (patch)
tree3446d93477df0997410dc770a2a7f08e233025c2 /net/ipv4/ip_forward.c
parentipv4: Kill spurious opt->srr check in ip_options_rcv_srr(). (diff)
downloadkernel-qcow2-linux-c30883bdff0b3544900a5c4aba18b8985436878f.tar.gz
kernel-qcow2-linux-c30883bdff0b3544900a5c4aba18b8985436878f.tar.xz
kernel-qcow2-linux-c30883bdff0b3544900a5c4aba18b8985436878f.zip
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>
Diffstat (limited to 'net/ipv4/ip_forward.c')
0 files changed, 0 insertions, 0 deletions