OSDN Git Service

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)
commit8c05c98b1a2f0bc8a8fbcc0746adedea01311040
treefcc95d3758ff9ac79f80257abebd62477ef8bac1
parent6042985276994d5a99b9f195c8ceac002e66f00d
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