Skip to content
Success

Changes

Summary

  1. core: always build tun.c and gate TUN support by headers (details)
Commit d8fbeea6741f0eeeb40be7d78faca033ee342cf6 by dtv.comp
core: always build tun.c and gate TUN support by headers

Always build tun.c and move platform-specific checks into the
implementation.

Guard the TUN-specific code paths based on the availability of
linux/if_tun.h detected at configure time. If TUN support is not
available, osmo_tundev_open() returns -ENOTSUP.

This keeps the public TUN API available while disabling unsupported
functionality in a capability-based way.

Change-Id: I6d1ea1644d12ef59a54cf2f73b9155def58b17a9
The file was modifiedconfigure.ac
The file was modifiedsrc/core/tun.c