Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Sotiris Nanopoulos <[email protected]>
  • Loading branch information
Sotiris Nanopoulos committed Sep 21, 2020
1 parent 172494e commit c1d4d36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/common/network/io_socket_handle_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Address::InstanceConstSharedPtr maybeGetDstAddressFromHeader(const cmsghdr& cmsg
return getAddressFromSockAddrOrDie(ss, sizeof(sockaddr_in), fd);
}
return nullptr;
} // namespace Network
}

absl::optional<uint32_t> maybeGetPacketsDroppedFromHeader(
#ifdef SO_RXQ_OVFL
Expand All @@ -226,7 +226,7 @@ absl::optional<uint32_t> maybeGetPacketsDroppedFromHeader(
const cmsghdr&) {
#endif
return absl::nullopt;
} // namespace Envoy
}

Api::IoCallUint64Result IoSocketHandleImpl::recvmsg(Buffer::RawSlice* slices,
const uint64_t num_slice, uint32_t self_port,
Expand Down
2 changes: 1 addition & 1 deletion source/common/network/io_socket_handle_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class IoSocketHandleImpl : public IoHandle, protected Logger::Loggable<Logger::I

os_fd_t fd_;
int socket_v6only_{false};
absl::optional<int> domain_;
const absl::optional<int> domain_;

// The minimum cmsg buffer size to filled in destination address, packets dropped and gso
// size when receiving a packet. It is possible for a received packet to contain both IPv4
Expand Down

0 comments on commit c1d4d36

Please sign in to comment.