1 // Copyright (c) 2019 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_QUIC_QBONE_PLATFORM_TCP_PACKET_H_ 6 #define QUICHE_QUIC_QBONE_PLATFORM_TCP_PACKET_H_ 7 8 #include <netinet/in.h> 9 #include <netinet/tcp.h> 10 11 #include <functional> 12 13 #include "absl/strings/string_view.h" 14 #include "quiche/quic/platform/api/quic_ip_address.h" 15 #include "quiche/common/quiche_callbacks.h" 16 17 namespace quic { 18 19 // Creates an TCPv6 RST packet, returning a packed string representation of the 20 // packet to |cb|. 21 void CreateTcpResetPacket( 22 absl::string_view original_packet, 23 quiche::UnretainedCallback<void(absl::string_view)> cb); 24 25 } // namespace quic 26 27 #endif // QUICHE_QUIC_QBONE_PLATFORM_TCP_PACKET_H_ 28