diff options
author | brooks <brooks@FreeBSD.org> | 2001-09-05 01:06:21 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2001-09-05 01:06:21 +0000 |
commit | c1c22aa95811f14c864a920cab1a495208b41119 (patch) | |
tree | 232aad8bc8d2978f54d73954e7f35963f74dd189 /sys/net/if_tapvar.h | |
parent | ec8731ce8003fe6694736f4f0c282e91286e2c92 (diff) | |
download | FreeBSD-src-c1c22aa95811f14c864a920cab1a495208b41119.zip FreeBSD-src-c1c22aa95811f14c864a920cab1a495208b41119.tar.gz |
Add cloning support for the tap(4) device similar to that in the tun(4)
device.
Submitted by: Maksim Yevmenkin <myevmenk@digisle.net>
Diffstat (limited to 'sys/net/if_tapvar.h')
-rw-r--r-- | sys/net/if_tapvar.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_tapvar.h b/sys/net/if_tapvar.h index f578294..06e3bbdf 100644 --- a/sys/net/if_tapvar.h +++ b/sys/net/if_tapvar.h @@ -44,7 +44,7 @@ struct tap_softc { struct arpcom arpcom; /* ethernet common data */ #define tap_if arpcom.ac_if - dev_t tap_dev; /* device */ + struct resource *tap_unit; /* unit */ u_short tap_flags; /* misc flags */ #define TAP_OPEN (1 << 0) @@ -59,6 +59,8 @@ struct tap_softc { pid_t tap_pid; /* PID of process to open */ struct sigio *tap_sigio; /* information for async I/O */ struct selinfo tap_rsel; /* read select */ + + SLIST_ENTRY(tap_softc) tap_next; /* next device in chain */ }; #endif /* !_NET_IF_TAPVAR_H_ */ |