blob: ab8ab231ecbecba530278c007f8bd6f761c5cf08 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_CONNECTIVITY_NETWORK_TESTS_BENCHMARKS_UTIL_H_
#define SRC_CONNECTIVITY_NETWORK_TESTS_BENCHMARKS_UTIL_H_
#include <arpa/inet.h>
#include <fcntl.h>
#include <lib/syslog/cpp/macros.h>
#include <lib/trace-provider/provider.h>
#include <lib/trace/event.h>
#include <net/if.h>
#include <netdb.h>
#include <netinet/if_ether.h>
#include <netinet/tcp.h>
#include <poll.h>
#include <sys/uio.h>
#include <memory>
#include <fbl/string_printf.h>
#include <fbl/unique_fd.h>
void TraceSend(int sendfd, uint8_t* buf, ssize_t size, const char* name, struct sockaddr_in* addr,
socklen_t addrlen);
void TraceRecv(int recvfd, uint8_t* buf, ssize_t size, const char* name, struct sockaddr_in* addr,
socklen_t addrlen);
#endif // SRC_CONNECTIVITY_NETWORK_TESTS_BENCHMARKS_UTIL_H_