2018-02-21 22:18:35 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
* @brief Private functions for native posix ethernet driver.
|
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_NATIVE_POSIX_PRIV_H_
|
|
|
|
#define ZEPHYR_DRIVERS_ETHERNET_ETH_NATIVE_POSIX_PRIV_H_
|
2018-02-21 22:18:35 +08:00
|
|
|
|
2023-10-03 19:58:25 +08:00
|
|
|
int eth_iface_create(const char *dev_name, const char *if_name, bool tun_only);
|
2018-02-21 22:18:35 +08:00
|
|
|
int eth_iface_remove(int fd);
|
|
|
|
int eth_wait_data(int fd);
|
2023-10-03 19:58:25 +08:00
|
|
|
int eth_clock_gettime(uint64_t *second, uint32_t *nanosecond);
|
2018-07-23 19:00:19 +08:00
|
|
|
int eth_promisc_mode(const char *if_name, bool enable);
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_DRIVERS_ETHERNET_ETH_NATIVE_POSIX_PRIV_H_ */
|