aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-06-02 08:23:50 -0700
committerFlorin Coras <florin.coras@gmail.com>2021-06-02 15:20:52 +0000
commit2f64790c596036877d1fc70a1cae0f96b655af19 (patch)
treeb51ed53ef0ad2b9ca6790d873a94f5893111e1e8 /src/vcl
parent427feb6fdd8aee373405dbd3a59f69440107b046 (diff)
vcl: ldp placeholder for SO_LINGER
Make sure we don't return error if app tries to setsockopt it. Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I1a9a6a8da03380b0b6a6d01efed9b672a3f0b1f9
Diffstat (limited to 'src/vcl')
-rw-r--r--src/vcl/ldp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c
index f27f6ba8e97..4d62a7318d4 100644
--- a/src/vcl/ldp.c
+++ b/src/vcl/ldp.c
@@ -2067,6 +2067,9 @@ setsockopt (int fd, int level, int optname,
rv = vls_attr (vlsh, VPPCOM_ATTR_SET_BROADCAST,
(void *) optval, &optlen);
break;
+ case SO_LINGER:
+ rv = 0;
+ break;
default:
LDBG (0, "ERROR: fd %d: setsockopt SOL_SOCKET: vlsh %u "
"optname %d unsupported!", fd, vlsh, optname);