xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/common/quiche_ip_address_family.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
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 QUICHE_COMMON_QUICHE_IP_ADDRESS_FAMILY_H_
6 #define QUICHE_COMMON_QUICHE_IP_ADDRESS_FAMILY_H_
7 
8 #include "quiche/common/platform/api/quiche_export.h"
9 
10 namespace quiche {
11 
12 // IP address family type used in QUIC. This hides platform dependant IP address
13 // family types.
14 enum class IpAddressFamily {
15   IP_V4,
16   IP_V6,
17   IP_UNSPEC,
18 };
19 
20 QUICHE_EXPORT int ToPlatformAddressFamily(IpAddressFamily family);
21 QUICHE_EXPORT IpAddressFamily FromPlatformAddressFamily(int family);
22 
23 }  // namespace quiche
24 
25 #endif  // QUICHE_COMMON_QUICHE_IP_ADDRESS_FAMILY_H_
26