ratp: remove bogus data checks in behavior C2
The SN validation was being completely ignored if the packet had no
data (e.g. for RST, FIN or SYN or plain ACKs). This condition is now
removed so that the SN check is done.

The second check removed was actually never being used, as it was
already being tested for not having data in the first one.

These two fixes are a cleanup to follow the protocol correctly.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b2fb42f commit e90817a514083345e80b248955e5d3d130561621
@Aleksander Morgado Aleksander Morgado authored on 21 Jun 2017
Sascha Hauer committed on 23 Jun 2017
Showing 2 changed files
View
lib/ratp.c
View
scripts/remote/ratp.py