diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2016-09-27 14:25:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-10-01 21:37:58 +0900 |
commit | 35973fcc20ad4e55d1a9a527266d02baebdb9dca (patch) | |
tree | 83f9fb5f3d487db41b459513be57a40370f0a00e /tools/test-requires | |
parent | 51e0abd3659efeaa0fd331b4af614e6b655c2a0d (diff) |
packet: Avoid parsing an empty buffer
For example, the packet library detects the TCP payload type by using
the TCP src/dst port, but in case of the BGP packet, the packet
library will try to parse a TCP ACK packet as a BGP packet, and will
fail to parse.
This patch enables to ignore an empty buffer and fixes this problem.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools/test-requires')
0 files changed, 0 insertions, 0 deletions