diff options
-rw-r--r-- | sys/dev/snp/snp.c | 3 | ||||
-rw-r--r-- | sys/net/if_tap.c | 3 | ||||
-rw-r--r-- | sys/net/if_tun.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 6e4eb9ab710c..19dc1e7d6f80 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -40,7 +40,7 @@ static d_poll_t snppoll; static struct cdevsw snp_cdevsw = { .d_version = D_VERSION, - .d_flags = D_NEEDGIANT, + .d_flags = D_PSEUDO | D_NEEDGIANT, .d_open = snpopen, .d_close = snpclose, .d_read = snpread, @@ -48,7 +48,6 @@ static struct cdevsw snp_cdevsw = { .d_ioctl = snpioctl, .d_poll = snppoll, .d_name = "snp", - .d_flags = D_PSEUDO, }; static struct linesw snpdisc = { diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c index c7d380ec1c40..37d3e3ea8162 100644 --- a/sys/net/if_tap.c +++ b/sys/net/if_tap.c @@ -98,7 +98,7 @@ static d_poll_t tappoll; static struct cdevsw tap_cdevsw = { .d_version = D_VERSION, - .d_flags = D_NEEDGIANT, + .d_flags = D_PSEUDO | D_NEEDGIANT, .d_open = tapopen, .d_close = tapclose, .d_read = tapread, @@ -106,7 +106,6 @@ static struct cdevsw tap_cdevsw = { .d_ioctl = tapioctl, .d_poll = tappoll, .d_name = CDEV_NAME, - .d_flags = D_PSEUDO, }; static int tapdebug = 0; /* debug flag */ diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 3c297c6a13a4..222ce42731a2 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -105,7 +105,7 @@ static d_poll_t tunpoll; static struct cdevsw tun_cdevsw = { .d_version = D_VERSION, - .d_flags = D_NEEDGIANT, + .d_flags = D_PSEUDO | D_NEEDGIANT, .d_open = tunopen, .d_close = tunclose, .d_read = tunread, @@ -113,7 +113,6 @@ static struct cdevsw tun_cdevsw = { .d_ioctl = tunioctl, .d_poll = tunpoll, .d_name = TUNNAME, - .d_flags = D_PSEUDO, }; static void |