[go: up one dir, main page]

File: tun-none.c

package info (click to toggle)
libdumbnet 1.16.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,652 kB
  • sloc: ansic: 11,557; sh: 4,000; python: 255; makefile: 92
file content (58 lines) | stat: -rw-r--r-- 683 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
 * tun-none.c
 *
 * Copyright (c) 2001 Dug Song <dugsong@monkey.org>
 *
 * $Id$
 */

#include "config.h"

#include <sys/types.h>

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>

#include "dumbnet.h"

tun_t *
tun_open(struct addr *src, struct addr *dst, int mtu)
{
	errno = ENOSYS;
	return (NULL);
}

const char *
tun_name(tun_t *tun)
{
	errno = ENOSYS;
	return (NULL);
}

int
tun_fileno(tun_t *tun)
{
	errno = ENOSYS;
	return (-1);
}

ssize_t
tun_send(tun_t *tun, const void *buf, size_t size)
{
	errno = ENOSYS;
	return (-1);
}

ssize_t
tun_recv(tun_t *tun, void *buf, size_t size)
{
	errno = ENOSYS;
	return (-1);
}

tun_t *
tun_close(tun_t *tun)
{
	return (NULL);
}