Sainath Grandhi | 635b8c8 | 2017-02-10 16:03:47 -0800 | [diff] [blame^] | 1 | #ifndef _LINUX_IF_TAP_H_ |
| 2 | #define _LINUX_IF_TAP_H_ |
| 3 | |
| 4 | #if IS_ENABLED(CONFIG_MACVTAP) |
| 5 | struct socket *tap_get_socket(struct file *); |
| 6 | #else |
| 7 | #include <linux/err.h> |
| 8 | #include <linux/errno.h> |
| 9 | struct file; |
| 10 | struct socket; |
| 11 | static inline struct socket *tap_get_socket(struct file *f) |
| 12 | { |
| 13 | return ERR_PTR(-EINVAL); |
| 14 | } |
| 15 | #endif /* CONFIG_MACVTAP */ |
| 16 | |
| 17 | rx_handler_result_t tap_handle_frame(struct sk_buff **pskb); |
| 18 | void tap_del_queues(struct net_device *dev); |
| 19 | int tap_get_minor(struct macvlan_dev *vlan); |
| 20 | void tap_free_minor(struct macvlan_dev *vlan); |
| 21 | int tap_queue_resize(struct macvlan_dev *vlan); |
| 22 | |
| 23 | #endif /*_LINUX_IF_TAP_H_*/ |