if_tuntap.c (01c738cd5c3938374cce8293c82753d977966154) | if_tuntap.c (ef9ffb8594eee294334ced627755bf5b46b48f9f) |
---|---|
1/* $NetBSD: if_tun.c,v 1.14 1994/06/29 06:36:25 cgd Exp $ */ 2/*- 3 * SPDX-License-Identifier: BSD-2-Clause 4 * 5 * Copyright (C) 1999-2000 by Maksim Yevmenkin <m_evmenkin@yahoo.com> 6 * All rights reserved. 7 * Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org> 8 * --- 239 unchanged lines hidden (view full) --- 248static d_ioctl_t tunioctl; 249static d_poll_t tunpoll; 250static d_kqfilter_t tunkqfilter; 251 252static int tunkqread(struct knote *, long); 253static int tunkqwrite(struct knote *, long); 254static void tunkqdetach(struct knote *); 255 | 1/* $NetBSD: if_tun.c,v 1.14 1994/06/29 06:36:25 cgd Exp $ */ 2/*- 3 * SPDX-License-Identifier: BSD-2-Clause 4 * 5 * Copyright (C) 1999-2000 by Maksim Yevmenkin <m_evmenkin@yahoo.com> 6 * All rights reserved. 7 * Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org> 8 * --- 239 unchanged lines hidden (view full) --- 248static d_ioctl_t tunioctl; 249static d_poll_t tunpoll; 250static d_kqfilter_t tunkqfilter; 251 252static int tunkqread(struct knote *, long); 253static int tunkqwrite(struct knote *, long); 254static void tunkqdetach(struct knote *); 255 |
256static struct filterops tun_read_filterops = { | 256static const struct filterops tun_read_filterops = { |
257 .f_isfd = 1, 258 .f_attach = NULL, 259 .f_detach = tunkqdetach, 260 .f_event = tunkqread, 261}; 262 | 257 .f_isfd = 1, 258 .f_attach = NULL, 259 .f_detach = tunkqdetach, 260 .f_event = tunkqread, 261}; 262 |
263static struct filterops tun_write_filterops = { | 263static const struct filterops tun_write_filterops = { |
264 .f_isfd = 1, 265 .f_attach = NULL, 266 .f_detach = tunkqdetach, 267 .f_event = tunkqwrite, 268}; 269 270static struct tuntap_driver { 271 struct cdevsw cdevsw; --- 1768 unchanged lines hidden --- | 264 .f_isfd = 1, 265 .f_attach = NULL, 266 .f_detach = tunkqdetach, 267 .f_event = tunkqwrite, 268}; 269 270static struct tuntap_driver { 271 struct cdevsw cdevsw; --- 1768 unchanged lines hidden --- |