blob: 56554bcccb581296f10f851184b18abc816945a7 [file] [log] [blame]
Taoyu Li906553a2019-10-18 13:44:41 +09001// Copyright 2019 The Chromium OS 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#include "arc/network/ndproxy.h"
6
7namespace arc_networkd {
8
9namespace {
10
11constexpr const uint8_t guest_if_mac[] = "\xd2\x47\xf7\xc5\x9e\x53";
12
13extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
14 // Turn off logging.
15 logging::SetMinLogLevel(logging::LOG_FATAL);
16
17 uint8_t out_buffer[IP_MAXPACKET];
18 NDProxy::TranslateNDFrame(data, size, guest_if_mac, out_buffer);
19
20 return 0;
21}
22
23} // namespace
24} // namespace arc_networkd