Lukáš Karas
22b4435c81
simplify tcp flag checks, fix stream_follower ( #334 )
...
* simplify tcp flag checks, fix stream_follower
On various places was used simple comparison for checking state of flags.
tcp.flags() == (TCP::SYN | TCP::ACK)
This is not what you want usually, because this check is false
in case that another flag is set also. Correct check for syn-ack
packet should be:
(tcp.flags() & (TCP::SYN | TCP::ACK)) == (TCP::SYN | TCP::ACK)
To simplify this kind of check, add new has_flags method:
bool TCP::has_flags(small_uint<12> check_flags) const
* remove duplicate TCP::SYN flag check
2019-03-14 18:18:12 -07:00
..
2017-09-21 20:48:57 -07:00
2018-07-26 13:29:23 -04:00
2017-09-21 20:48:57 -07:00
2018-12-25 10:38:44 +08:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2018-03-20 18:50:42 -07:00
2017-06-05 20:44:03 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2018-09-08 15:11:06 +01:00
2017-09-21 20:48:57 -07:00
2017-11-06 09:29:57 -08:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2018-08-02 09:17:07 -07:00
2017-09-21 20:48:57 -07:00
2018-03-28 20:44:28 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2018-03-28 20:44:28 -07:00
2017-12-03 13:50:02 -08:00
2019-01-22 19:32:51 +01:00
2017-09-21 20:48:57 -07:00
2018-03-28 20:44:28 -07:00
2018-03-28 21:05:01 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-11-04 12:08:34 -07:00
2018-03-28 20:44:28 -07:00
2017-09-21 20:48:57 -07:00
2018-02-25 10:42:16 -08:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2018-02-03 09:32:43 -08:00
2017-09-21 20:48:57 -07:00
2019-01-22 19:32:51 +01:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-10-12 20:02:28 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-06-05 20:44:03 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00
2019-03-14 18:18:12 -07:00
2017-09-21 20:48:57 -07:00
2018-02-03 09:31:24 -08:00
2017-09-21 20:48:57 -07:00
2017-09-21 20:48:57 -07:00