Hugo Benichi | f818c78 | 2021-04-10 00:09:50 +0900 | [diff] [blame] | 1 | // Copyright 2021 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 "patchpanel/system.h" |
| 6 | |
| 7 | namespace patchpanel { |
| 8 | |
| 9 | int System::Ioctl(int fd, ioctl_req_t request, const char* argp) { |
| 10 | return ioctl(fd, request, argp); |
| 11 | } |
| 12 | |
| 13 | int System::Ioctl(int fd, ioctl_req_t request, uint64_t arg) { |
| 14 | return Ioctl(fd, request, reinterpret_cast<const char*>(arg)); |
| 15 | } |
| 16 | |
| 17 | int System::Ioctl(int fd, ioctl_req_t request, struct ifreq* ifr) { |
| 18 | return Ioctl(fd, request, reinterpret_cast<const char*>(ifr)); |
| 19 | } |
| 20 | |
| 21 | int System::Ioctl(int fd, ioctl_req_t request, struct rtentry* route) { |
| 22 | return Ioctl(fd, request, reinterpret_cast<const char*>(route)); |
| 23 | } |
| 24 | |
| 25 | } // namespace patchpanel |