-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-test: packetdrill: fix compilation/runtime error for linux 3.x
For linux 3.10, TCP_CC_INFO and SO_MEMINFO are not supported. When we define HAVE_SO_MEMINFO / HAVE_TCP_CC_INFO as 0, functions like write_tcp_bbr_cc_info and write_so_meminfo will not be accessed. So wrap them with #ifdef and #endif. Also, for lower linux version, tcp_info option value has less fields(e.g. 120 bytes). So remove the size assert. Change-Id: Ibb4458067becdb857ff82f680bdd37727b5c2378
- Loading branch information
Shu Ma
committed
Dec 24, 2018
1 parent
98f2e73
commit 93c5fbf
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters