fr + gbproxy: Start to use AF_PACKET ENOBUFS work-around

If send() on AF_PACKET returns ENOBUFS, usleep for 2ms and re-try
until it succeeds.

Change-Id: Id7bdd2c690eae3bec1df7634944cd73f0bf0b29a
Closes: OS#5343
This commit is contained in:
Harald Welte 2021-01-30 11:03:46 +01:00 committed by laforge
parent bc1e66a3f1
commit 920c7c45ec
4 changed files with 4 additions and 1 deletions

2
deps/Makefile vendored
View File

@ -112,7 +112,7 @@ titan.ProtocolModules.SNDCP_v7.0.0_commit= R.2.A-5-gd0f0ce6
titan.ProtocolModules.SUA_commit= R.5.A-5-gcf1137a
titan.ProtocolModules.TCP_commit= R.3.A-5-g39e5f45
titan.ProtocolModules.UDP_commit= R.4.A-5-geea8aa3
titan.TestPorts.AF_PACKET_commit= 0.1-1-gcd69809
titan.TestPorts.AF_PACKET_commit= 0.1-2-g90ef318
titan.TestPorts.Common_Components.Socket-API_commit= R.6.A-6-gf4380d0
titan.TestPorts.Common_Components.Abstract_Socket_commit= R.9.B-4-gbd41994
titan.TestPorts.HTTPmsg_commit= R.9.B-4-g9a0dfde

View File

@ -9,6 +9,7 @@ ConsoleMask := ERROR | WARNING | TESTCASE | TIMEROP_START | USER
[MODULE_PARAMETERS]
[TESTPORT_PARAMETERS]
*.FR.sleep_on_enobufs := "2000" # 2ms
[MAIN_CONTROLLER]

View File

@ -9,6 +9,7 @@ ConsoleMask := ERROR | WARNING | TESTCASE | TIMEROP_START | USER
[MODULE_PARAMETERS]
[TESTPORT_PARAMETERS]
*.FR.sleep_on_enobufs := "2000"
[MAIN_CONTROLLER]

View File

@ -21,6 +21,7 @@ FileMask := LOG_ALL | TTCN_MATCHING;
*.GBPVTY.CTRL_CLIENT_CLEANUP_LINEFEED := "yes"
*.GBPVTY.CTRL_DETECT_CONNECTION_ESTABLISHMENT_RESULT := "yes"
*.GBPVTY.PROMPT1 := "OsmoGbProxy> "
*.FR.sleep_on_enobufs := "2000" # 2ms
[MODULE_PARAMETERS]