1 // Copyright 2020 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_THIRD_PARTY_QUICHE_OVERRIDES_QUICHE_PLATFORM_IMPL_QUICHE_UDP_SOCKET_PLATFORM_IMPL_H_
6 #define NET_THIRD_PARTY_QUICHE_OVERRIDES_QUICHE_PLATFORM_IMPL_QUICHE_UDP_SOCKET_PLATFORM_IMPL_H_
7
8 #include <sys/socket.h>
9 #include <unistd.h>
10
11 #include <cstddef>
12 #include <cstdint>
13
14 namespace quiche {
15
16 const size_t kCmsgSpaceForGooglePacketHeaderImpl = 0;
17
GetGooglePacketHeadersFromControlMessageImpl(struct::cmsghdr * cmsg,char ** packet_headers,size_t * packet_headers_len)18 inline bool GetGooglePacketHeadersFromControlMessageImpl(
19 struct ::cmsghdr* cmsg,
20 char** packet_headers,
21 size_t* packet_headers_len) {
22 return false;
23 }
24
SetGoogleSocketOptionsImpl(int fd)25 inline void SetGoogleSocketOptionsImpl(int fd) {}
26
GetEcnCmsgArgsPreserveDscpImpl(const int fd,const int address_family,uint8_t ecn_codepoint,int & type,void * value,socklen_t & value_len)27 inline int GetEcnCmsgArgsPreserveDscpImpl(const int fd,
28 const int address_family,
29 uint8_t ecn_codepoint,
30 int& type,
31 void* value,
32 socklen_t& value_len) {
33 return 0;
34 }
35
36 } // namespace quiche
37
38 #endif // NET_THIRD_PARTY_QUICHE_OVERRIDES_QUICHE_PLATFORM_IMPL_QUICHE_UDP_SOCKET_PLATFORM_IMPL_H_
39