diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:42:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:42:04 +0000 |
commit | 0d47952611198ef6b1163f366dc03922d20b1475 (patch) | |
tree | 3d840a3b8c0daef0754707bfb9f5e873b6b1ac13 /libdnet-stripped/include/dnet/tun.h | |
parent | Initial commit. (diff) | |
download | nmap-upstream.tar.xz nmap-upstream.zip |
Adding upstream version 7.94+git20230807.3be01efb1+dfsg.upstream/7.94+git20230807.3be01efb1+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | libdnet-stripped/include/dnet/tun.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libdnet-stripped/include/dnet/tun.h b/libdnet-stripped/include/dnet/tun.h new file mode 100644 index 0000000..b3198ea --- /dev/null +++ b/libdnet-stripped/include/dnet/tun.h @@ -0,0 +1,25 @@ +/* + * tun.h + * + * Network tunnel device. + * + * Copyright (c) 2001 Dug Song <dugsong@monkey.org> + * + * $Id: tun.h 547 2005-01-25 21:30:40Z dugsong $ + */ + +#ifndef DNET_TUN_H +#define DNET_TUN_H + +typedef struct tun tun_t; + +__BEGIN_DECLS +tun_t *tun_open(struct addr *src, struct addr *dst, int mtu); +int tun_fileno(tun_t *tun); +const char *tun_name(tun_t *tun); +ssize_t tun_send(tun_t *tun, const void *buf, size_t size); +ssize_t tun_recv(tun_t *tun, void *buf, size_t size); +tun_t *tun_close(tun_t *tun); +__END_DECLS + +#endif /* DNET_TUN_H */ |