]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Use standard iovec primitive in raw_probe_proto_opt
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 7 Nov 2014 13:27:08 +0000 (21:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Nov 2014 19:25:35 +0000 (14:25 -0500)
commit5071000a02498b17a21b5c49f401071fb4b27075
treee65937a86f9af8eeac60db99a8ad1720d312998a
parentbdfe6bbc2bdae8db5a1d931aa996805ae9184d20
ipv4: Use standard iovec primitive in raw_probe_proto_opt

The function raw_probe_proto_opt tries to extract the first two
bytes from the user input in order to seed the IPsec lookup for
ICMP packets.  In doing so it's processing iovec by hand and
overcomplicating things.

This patch replaces the manual iovec processing with a call to
memcpy_fromiovecend.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/raw.c