blob: f802b8299270cc184adfb1240fc3e79d1bd9fc5f [file] [log] [blame]
Hugo Benichif818c782021-04-10 00:09:50 +09001// 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
7namespace patchpanel {
8
9int System::Ioctl(int fd, ioctl_req_t request, const char* argp) {
10 return ioctl(fd, request, argp);
11}
12
13int System::Ioctl(int fd, ioctl_req_t request, uint64_t arg) {
14 return Ioctl(fd, request, reinterpret_cast<const char*>(arg));
15}
16
17int System::Ioctl(int fd, ioctl_req_t request, struct ifreq* ifr) {
18 return Ioctl(fd, request, reinterpret_cast<const char*>(ifr));
19}
20
21int 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