1234567891011121314151617181920212223242526272829303132 |
- #ifndef __IF_TUN_H
- #define __IF_TUN_H
- #include <uapi/linux/if_tun.h>
- #if defined(CONFIG_TUN) || defined(CONFIG_TUN_MODULE)
- struct socket *tun_get_socket(struct file *);
- #else
- #include <linux/err.h>
- #include <linux/errno.h>
- struct file;
- struct socket;
- static inline struct socket *tun_get_socket(struct file *f)
- {
- return ERR_PTR(-EINVAL);
- }
- #endif
- #endif
|