blob: b4404949da097a836ef67b0ec85ae9239a0c67c7 [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "arc/network/ndproxy.h"
namespace arc_networkd {
namespace {
constexpr const uint8_t guest_if_mac[] = "\xd2\x47\xf7\xc5\x9e\x53";
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
// Turn off logging.
logging::SetMinLogLevel(logging::LOG_FATAL);
uint8_t* out_buffer = new uint8_t[size];
NDProxy::TranslateNDFrame(data, size, guest_if_mac, out_buffer);
delete[] out_buffer;
return 0;
}
} // namespace
} // namespace arc_networkd