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
changes/45/22545/2
Harald Welte 2 years ago committed by laforge
parent bc1e66a3f1
commit 920c7c45ec
  1. 2
      deps/Makefile
  2. 1
      fr-net/FRNET_Tests.default
  3. 1
      fr/FR_Tests.default
  4. 1
      gbproxy/GBProxy_Tests.default

2
deps/Makefile vendored

@ -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

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

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

@ -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]

Loading…
Cancel
Save