diff options
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 7ab94c825b57..3bb991fd2b51 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -640,6 +640,14 @@ static int tun_chr_ioctl(struct inode *inode, struct file *file, | |||
640 | return 0; | 640 | return 0; |
641 | } | 641 | } |
642 | 642 | ||
643 | if (cmd == TUNGETFEATURES) { | ||
644 | /* Currently this just means: "what IFF flags are valid?". | ||
645 | * This is needed because we never checked for invalid flags on | ||
646 | * TUNSETIFF. */ | ||
647 | return put_user(IFF_TUN | IFF_TAP | IFF_NO_PI | IFF_ONE_QUEUE, | ||
648 | (unsigned int __user*)argp); | ||
649 | } | ||
650 | |||
643 | if (!tun) | 651 | if (!tun) |
644 | return -EBADFD; | 652 | return -EBADFD; |
645 | 653 | ||