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 namespace quiche { 9 10 // IP address family type used in QUIC. This hides platform dependant IP address 11 // family types. 12 enum class IpAddressFamily { 13 IP_V4, 14 IP_V6, 15 IP_UNSPEC, 16 }; 17 18 int ToPlatformAddressFamily(IpAddressFamily family); 19 IpAddressFamily FromPlatformAddressFamily(int family); 20 21 } // namespace quiche 22 23 #endif // QUICHE_COMMON_QUICHE_IP_ADDRESS_FAMILY_H_ 24