Taoyu Li | 906553a | 2019-10-18 13:44:41 +0900 | [diff] [blame^] | 1 | // 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 | |
| 7 | namespace arc_networkd { |
| 8 | |
| 9 | namespace { |
| 10 | |
| 11 | constexpr const uint8_t guest_if_mac[] = "\xd2\x47\xf7\xc5\x9e\x53"; |
| 12 | |
| 13 | extern "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 |