]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: Use common structs to parse ip packets
authorThibaut Robert <thibaut.robert@gmail.com>
Tue, 19 Jun 2018 18:44:19 +0000 (20:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:54:03 +0000 (21:54 +0900)
commitffb60dbb1e71bfa72ac7accdb8a9d79e1c5a0260
treefcc95d3758ff9ac79f80257abebd62477ef8bac1
parent8067f12f3ca8f196fa6d33bd59e2672099b8cc2c
staging: wilc1000: Use common structs to parse ip packets

Use structs ethhdr, iphdr and tcphdr instead of manual parsing in
tcp_process.
This commit fix handling of ip packets containing options.
It also fixes the following sparse warning:

drivers/staging/wilc1000//wilc_wlan.c:201:19: warning: cast to restricted __be16

Signed-off-by: Thibaut Robert <thibaut.robert@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c