aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vcl/ldp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c
index 9f195c64a1b..088c118b6ed 100644
--- a/src/vcl/ldp.c
+++ b/src/vcl/ldp.c
@@ -1700,6 +1700,11 @@ getsockopt (int fd, int level, int optname,
else
rv = -EFAULT;
break;
+ case TCP_CONGESTION:
+ strcpy (optval, "cubic");
+ *optlen = strlen ("cubic");
+ rv = 0;
+ break;
default:
LDBG (0, "ERROR: fd %d: getsockopt SOL_TCP: sid %u, "
"optname %d unsupported!", fd, vlsh, optname);
@@ -1808,6 +1813,10 @@ setsockopt (int fd, int level, int optname,
rv = vls_attr (vlsh, VPPCOM_ATTR_SET_TCP_KEEPINTVL,
(void *) optval, &optlen);
break;
+ case TCP_CONGESTION:
+ /* Ignore */
+ rv = 0;
+ break;
default:
LDBG (0, "ERROR: fd %d: setsockopt() SOL_TCP: vlsh %u"
"optname %d unsupported!", fd, vlsh, optname);