mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
net_tun library is updated for supporting FreeBSD and MacOSX
In FreeBSD and MacOSX, tun driver is automatically configured.
This commit is contained in:
parent
86908cdbe9
commit
b8a37b0ea1
3 changed files with 154 additions and 66 deletions
|
|
@ -263,12 +263,10 @@ CORE_DECLARE(int) net_unregister_link(net_link_t *net_link);
|
|||
CORE_DECLARE(int) net_fds_read_run(long timeout);
|
||||
|
||||
/** TunTap interface */
|
||||
CORE_DECLARE(int) net_tuntap_open(net_link_t **net_link, char *tuntap_dev_name,
|
||||
int is_tap);
|
||||
|
||||
CORE_DECLARE(int) net_tuntap_set_ipv4(c_uint32_t ip_addr, c_uint8_t bits);
|
||||
|
||||
CORE_DECLARE(int) net_tuntap_close(net_link_t *net_link);
|
||||
CORE_DECLARE(int) net_tun_open(net_link_t **net_link, char *name, int is_tap);
|
||||
CORE_DECLARE(int) net_tun_set_ipv4(
|
||||
net_link_t *net_link, c_uint32_t addr, c_uint8_t bits);
|
||||
CORE_DECLARE(int) net_tun_close(net_link_t *net_link);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue