From a9b47390c821942d60784e308f681f213645049c Mon Sep 17 00:00:00 2001 From: Zeling Feng Date: Fri, 29 May 2020 17:22:56 -0700 Subject: Test TCP should queue RECEIVE request in SYN-SENT PiperOrigin-RevId: 313878910 --- test/packetimpact/dut/posix_server.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/packetimpact/dut/posix_server.cc') diff --git a/test/packetimpact/dut/posix_server.cc b/test/packetimpact/dut/posix_server.cc index dc3024f44..a34307bb2 100644 --- a/test/packetimpact/dut/posix_server.cc +++ b/test/packetimpact/dut/posix_server.cc @@ -158,6 +158,14 @@ class PosixImpl final : public posix_server::Posix::Service { return ::grpc::Status::OK; } + ::grpc::Status Fcntl(grpc_impl::ServerContext *context, + const ::posix_server::FcntlRequest *request, + ::posix_server::FcntlResponse *response) override { + response->set_ret(::fcntl(request->fd(), request->cmd(), request->arg())); + response->set_errno_(errno); + return ::grpc::Status::OK; + } + ::grpc::Status GetSockName( grpc_impl::ServerContext *context, const ::posix_server::GetSockNameRequest *request, -- cgit v1.2.3